From f9e3db0504014df9e08424363de31dfa578f0530 Mon Sep 17 00:00:00 2001 From: mcsauder Date: Fri, 26 Feb 2016 21:42:22 -0700 Subject: [PATCH] Move variable initializations from header file to constructor to allow C99 compliance. --- EKF/estimator_interface.cpp | 3 +++ EKF/estimator_interface.h | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/EKF/estimator_interface.cpp b/EKF/estimator_interface.cpp index 85d39927c1..8658551b3c 100644 --- a/EKF/estimator_interface.cpp +++ b/EKF/estimator_interface.cpp @@ -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), diff --git a/EKF/estimator_interface.h b/EKF/estimator_interface.h index b630d27b5f..ae6a4b4702 100644 --- a/EKF/estimator_interface.h +++ b/EKF/estimator_interface.h @@ -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