From a4cecb1704cc6b88ec111dcd8213664550b3bd18 Mon Sep 17 00:00:00 2001 From: mcsauder Date: Tue, 23 Feb 2016 19:57:27 -0700 Subject: [PATCH] Match variable initialization order difference with upstream. --- EKF/ekf.cpp | 2 +- EKF/ekf.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/EKF/ekf.cpp b/EKF/ekf.cpp index c7d65ac6e0..605326c124 100644 --- a/EKF/ekf.cpp +++ b/EKF/ekf.cpp @@ -83,8 +83,8 @@ Ekf::Ekf(): _mag_innov_var = {}; _delta_angle_corr.setZero(); _delta_vel_corr.setZero(); + _vel_corr.setZero(); _last_known_posNE.setZero(); - _vel_corr.setZero(); _imu_down_sampled = {}; _q_down_sampled.setZero(); _mag_sum = {}; diff --git a/EKF/ekf.h b/EKF/ekf.h index c68e818a44..25fb0f0138 100644 --- a/EKF/ekf.h +++ b/EKF/ekf.h @@ -155,7 +155,7 @@ private: uint64_t _last_gps_origin_time_us; // time the origin was last set (uSec) float _gps_alt_ref; // WGS-84 height (m) - // Variables used to initialize the filter states + // Variables used to initialise the filter states uint8_t _baro_counter; // number of baro samples averaged float _baro_sum; // summed baro measurement uint8_t _mag_counter; // number of magnetometer samples averaged