Move variable initializations from header file to constructor to allow C99 compliance.

This commit is contained in:
mcsauder 2016-02-26 21:42:22 -07:00 committed by Roman
parent d8627c6aaf
commit f9e3db0504
2 changed files with 6 additions and 3 deletions

View File

@ -57,6 +57,9 @@ EstimatorInterface::EstimatorInterface():
_NED_origin_initialised(false),
_gps_speed_valid(false),
_gps_speed_accuracy(0.0f),
_gps_hpos_accuracy(0.0f),
_gps_origin_eph(0.0f),
_gps_origin_epv(0.0f),
_mag_healthy(false),
_yaw_test_ratio(0.0f),
_time_last_imu(0),

View File

@ -200,9 +200,9 @@ protected:
bool _gps_speed_valid;
float _gps_speed_accuracy; // GPS receiver reported speed accuracy (m/s)
struct map_projection_reference_s _pos_ref; // Contains WGS-84 position latitude and longitude (radians)
float _gps_hpos_accuracy = 0.0f; // GPS receiver reported 1-sigma horizontal accuracy (m)
float _gps_origin_eph = 0.0f; // horizontal position uncertainty of the GPS origin
float _gps_origin_epv = 0.0f; // vertical position uncertainty of the GPS origin
float _gps_hpos_accuracy; // GPS receiver reported 1-sigma horizontal accuracy (m)
float _gps_origin_eph; // horizontal position uncertainty of the GPS origin
float _gps_origin_epv; // vertical position uncertainty of the GPS origin
bool _mag_healthy; // computed by mag innovation test
float _yaw_test_ratio; // yaw innovation consistency check ratio