From 1f2e38ed28b449aabb9ee23fbedfd80708c514a8 Mon Sep 17 00:00:00 2001 From: Randy Mackay Date: Mon, 14 Jul 2014 23:17:43 +0900 Subject: [PATCH] AHRS: initalise members to reduce compiler warnings --- libraries/AP_AHRS/AP_AHRS.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/libraries/AP_AHRS/AP_AHRS.h b/libraries/AP_AHRS/AP_AHRS.h index ba62448af3..da26f60b07 100644 --- a/libraries/AP_AHRS/AP_AHRS.h +++ b/libraries/AP_AHRS/AP_AHRS.h @@ -46,8 +46,16 @@ class AP_AHRS public: // Constructor AP_AHRS(AP_InertialSensor &ins, AP_Baro &baro, AP_GPS &gps) : + roll(0.0f), + pitch(0.0f), + yaw(0.0f), + roll_sensor(0), + pitch_sensor(0), + yaw_sensor(0), _vehicle_class(AHRS_VEHICLE_UNKNOWN), _compass(NULL), + _airspeed(NULL), + _compass_last_update(0), _ins(ins), _baro(baro), _gps(gps),