From 424a65663a93a32b028f700f17a60be543cb51de Mon Sep 17 00:00:00 2001 From: Randy Mackay Date: Thu, 14 Aug 2014 13:14:41 +0900 Subject: [PATCH] Baro: init members to resolve compiler warning --- libraries/AP_Baro/AP_Baro.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/libraries/AP_Baro/AP_Baro.h b/libraries/AP_Baro/AP_Baro.h index c49a16c2a9..c14cb74f84 100644 --- a/libraries/AP_Baro/AP_Baro.h +++ b/libraries/AP_Baro/AP_Baro.h @@ -10,7 +10,14 @@ class AP_Baro { public: - AP_Baro() { + AP_Baro() : + _last_update(0), + _pressure_samples(0), + _altitude(0.0f), + _last_altitude_EAS2TAS(0.0f), + _EAS2TAS(0.0f), + _last_altitude_t(0) + { // initialise flags _flags.healthy = false; _flags.alt_ok = false;