From 933189eac0e12390302e67f00910f68573ba2221 Mon Sep 17 00:00:00 2001 From: Nico van Duijn Date: Thu, 12 Sep 2019 08:04:56 +0200 Subject: [PATCH] EKF: fix rng_faulty flag when sensor is stuck --- EKF/control.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/EKF/control.cpp b/EKF/control.cpp index f5b904f853..ef92c4d9a1 100644 --- a/EKF/control.cpp +++ b/EKF/control.cpp @@ -1244,7 +1244,7 @@ void Ekf::checkRangeDataValidity() } _control_status.flags.rng_stuck = true; - _rng_hgt_faulty = (_range_sample_delayed.quality == 0); + _rng_hgt_faulty = true; } } else {