From 3b0dac31987f496668421c7ed94f6ac89351cc81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20Jos=C3=A9=20Pereira?= Date: Wed, 3 Feb 2021 11:04:39 -0300 Subject: [PATCH] AP_NavEKF3: Simplify boolean expression MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Patrick José Pereira --- libraries/AP_NavEKF3/AP_NavEKF3_Control.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/libraries/AP_NavEKF3/AP_NavEKF3_Control.cpp b/libraries/AP_NavEKF3/AP_NavEKF3_Control.cpp index 5d6c10f71e..bb7dcf3d53 100644 --- a/libraries/AP_NavEKF3/AP_NavEKF3_Control.cpp +++ b/libraries/AP_NavEKF3/AP_NavEKF3_Control.cpp @@ -90,11 +90,7 @@ void NavEKF3_core::setWindMagStateLearningMode() } // determine if the vehicle is manoeuvring - if (accNavMagHoriz > 0.5f) { - manoeuvring = true; - } else { - manoeuvring = false; - } + manoeuvring = accNavMagHoriz > 0.5f; // Determine if learning of magnetic field states has been requested by the user bool magCalRequested =