AHRS: initalise members to reduce compiler warnings

This commit is contained in:
Randy Mackay 2014-07-14 23:17:43 +09:00 committed by unknown
parent 0f7178e447
commit 1f2e38ed28
1 changed files with 8 additions and 0 deletions

View File

@ -46,8 +46,16 @@ class AP_AHRS
public: public:
// Constructor // Constructor
AP_AHRS(AP_InertialSensor &ins, AP_Baro &baro, AP_GPS &gps) : 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), _vehicle_class(AHRS_VEHICLE_UNKNOWN),
_compass(NULL), _compass(NULL),
_airspeed(NULL),
_compass_last_update(0),
_ins(ins), _ins(ins),
_baro(baro), _baro(baro),
_gps(gps), _gps(gps),