From 006b6b58e443a75d7146b478d45d33fb7373552e Mon Sep 17 00:00:00 2001 From: Paul Riseborough Date: Mon, 11 Apr 2016 19:40:27 +1000 Subject: [PATCH] EKF: fix bug in status print statement --- EKF/control.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/EKF/control.cpp b/EKF/control.cpp index f3287adc5d..8fc114a045 100644 --- a/EKF/control.cpp +++ b/EKF/control.cpp @@ -184,9 +184,7 @@ void Ekf::controlFusionModes() _control_status.flags.rng_hgt = false; // adjust the height offset so we can use the GPS _hgt_sensor_offset = _state.pos(2) + gps_init.hgt - _gps_alt_ref; - if (!baro_hgt_available) { - printf("EKF baro hgt timeout - switching to gps\n"); - } + printf("EKF baro hgt timeout - switching to gps\n"); } }