From 0c8c707980605310804cabe0c8670116d3b1b91a Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 17 Dec 2011 14:57:54 +1100 Subject: [PATCH] AP_Baro: fixed temperature on MS5611 this caused a 2x scaling of altitude --- libraries/AP_Baro/AP_Baro_MS5611.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libraries/AP_Baro/AP_Baro_MS5611.cpp b/libraries/AP_Baro/AP_Baro_MS5611.cpp index 4b3f47b387..e815cc8cc3 100644 --- a/libraries/AP_Baro/AP_Baro_MS5611.cpp +++ b/libraries/AP_Baro/AP_Baro_MS5611.cpp @@ -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