From 26bf6365419930c192203708e85f039a82d06cee Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 2 May 2013 21:31:04 +1000 Subject: [PATCH] AP_Baro: fixed a build warning --- libraries/AP_Baro/AP_Baro_HIL.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libraries/AP_Baro/AP_Baro_HIL.cpp b/libraries/AP_Baro/AP_Baro_HIL.cpp index f1427c8726..b490c30ccc 100644 --- a/libraries/AP_Baro/AP_Baro_HIL.cpp +++ b/libraries/AP_Baro/AP_Baro_HIL.cpp @@ -35,16 +35,16 @@ void AP_Baro_HIL::setHIL(float altitude_msl) { // approximate a barometer. This uses the typical base pressure in // Canberra, Australia - const float Temp = 312; + const float temperature = 312; float y = (altitude_msl - 584.0) / 29.271267; - y /= (Temp / 10.0) + 273.15; + y /= (temperature / 10.0) + 273.15; y = 1.0/exp(y); y *= 95446.0; _count++; _pressure_sum += y; - _temperature_sum += Temp; + _temperature_sum += temperature; if (_count == 128) { // we have summed 128 values. This only happens // when we stop reading the barometer for a long time