Adafruit 10-DOF breakout

For other supported Arduino products from Adafruit: Shields, accessories, etc.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
tizik
 
Posts: 3
Joined: Thu Jan 02, 2014 9:54 am

Adafruit 10-DOF breakout

Post by tizik »

was wondering how I could write a code to zero the altitude on start up and have it measure the actual altitude of the device?
when I run the examples givin, the altitude is around 240 m.

User avatar
adafruit_support_bill
 
Posts: 88096
Joined: Sat Feb 07, 2009 10:11 am

Re: Adafruit 10-DOF breakout

Post by adafruit_support_bill »

Just take an altitude reading in setup(). Save it to a variable. Then subtract that variable from all the readings after that.

User avatar
tizik
 
Posts: 3
Joined: Thu Jan 02, 2014 9:54 am

Re: Adafruit 10-DOF breakout

Post by tizik »

Sweet. Didn't know it was that simple! thanx

Locked
Please be positive and constructive with your questions and comments.

Return to “Other Arduino products from Adafruit”