From 52cb9d02c7ed46c06d34ce7edb1d24d4cebdecba Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Fri, 1 Jan 2016 12:31:36 +0100 Subject: [PATCH] EKF: Initialize all local structs and variables --- EKF/estimator_base.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/EKF/estimator_base.h b/EKF/estimator_base.h index ee606c1143..8d2472aa48 100644 --- a/EKF/estimator_base.h +++ b/EKF/estimator_base.h @@ -286,7 +286,7 @@ public: *time_us = _imu_time_last; } - uint64_t _last_gps_origin_time_us; - struct map_projection_reference_s _posRef; - float _gps_alt_ref; + uint64_t _last_gps_origin_time_us = 0; + struct map_projection_reference_s _posRef = {}; + float _gps_alt_ref = 0.0f; };