Browse Source

AP_Baro: fixed temperature on MS5611

this caused a 2x scaling of altitude
mission-4.1.18
Andrew Tridgell 13 years ago
parent
commit
bb0f179495
  1. 3
      libraries/AP_Baro/AP_Baro_MS5611.cpp

3
libraries/AP_Baro/AP_Baro_MS5611.cpp

@ -235,7 +235,8 @@ int32_t AP_Baro_MS5611::get_pressure() @@ -235,7 +235,8 @@ int32_t AP_Baro_MS5611::get_pressure()
int16_t AP_Baro_MS5611::get_temperature()
{
return(Temp);
// callers want the temperature in 0.1C units
return(Temp/10);
}
// Return altitude using the standard 1013.25 mbar at sea level reference

Loading…
Cancel
Save