AP_NavEKF3: Simplify boolean expression

Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
This commit is contained in:
Patrick José Pereira 2021-02-03 11:04:39 -03:00 committed by Andrew Tridgell
parent 4f81aa82e2
commit 3b0dac3198
1 changed files with 1 additions and 5 deletions

View File

@ -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 =