lis-epfl / MAVRIC_Library

Software library to build drone autopilots
http://lis-epfl.github.io/MAVRIC_Library/
BSD 3-Clause "New" or "Revised" License
12 stars 21 forks source link

Add reading of factory calibrated parameters in the driver of BMP085 #334

Closed jlecoeur closed 7 years ago

jlecoeur commented 7 years ago

Fixes #327

In the driver of the baro BMP085, the calibration data (used to compute pressure from raw sensor data) were the example values given in the datasheet. I added a method to read the calibration data from EPROM. This method is called in the init function.

Before the change, I got raw pressure of about 129 119Pa, which translates to an estimated altitude of -2092m with sea level pressure of 101 325Pa. Now, I get a pressure of 97 960Pa, which gives an altitude of 284m. This is still much closer to reality !

GregoireH commented 7 years ago

@jlecoeur Why do you change mavlink submodule ?

jlecoeur commented 7 years ago

I forgot to update the submodule after I switched from dev/mission_planner.

jlecoeur commented 7 years ago

@GregoireH I fixed it