From 26dcf05d80ff98f72c79099901d84bd3986b9291 Mon Sep 17 00:00:00 2001 From: elia Date: Tue, 22 May 2018 21:49:59 +0300 Subject: [PATCH] keep ev timeout sign always positive --- EKF/control.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/EKF/control.cpp b/EKF/control.cpp index 878032861ee2..46de191a3a7a 100644 --- a/EKF/control.cpp +++ b/EKF/control.cpp @@ -326,6 +326,7 @@ void Ekf::controlExternalVisionFusion() } } else if (_control_status.flags.ev_pos + && (_time_last_imu >= _time_last_ext_vision) && (_time_last_imu - _time_last_ext_vision > (uint64_t)_params.no_gps_timeout_max)) { // Turn off EV fusion mode if no data has been received