Skip to content
Snippets Groups Projects
Commit 0c8c7079 authored by Andrew Tridgell's avatar Andrew Tridgell
Browse files

AP_Baro: fixed temperature on MS5611

this caused a 2x scaling of altitude
parent 5e0ab4c2
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment