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 !
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 !