mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-10 09:58:28 -04:00
AP_NavEKF2: Fix in-air logic bug
This commit is contained in:
parent
e7de2d3ea3
commit
242b9641c8
@ -312,11 +312,6 @@ void NavEKF2_core::detectFlight()
|
||||
onGround = false;
|
||||
}
|
||||
|
||||
// Determine if is is possible we are on the ground
|
||||
if (highGndSpd || highAirSpd || largeHgtChange) {
|
||||
inFlight = false;
|
||||
}
|
||||
|
||||
// Determine to a high certainty we are not flying
|
||||
// after 5 seconds of not detecting a possible flight condition or we are disarmed, we transition to on-ground mode
|
||||
if(!motorsArmed || ((imuSampleTime_ms - airborneDetectTime_ms) > 5000)) {
|
||||
|
Loading…
Reference in New Issue
Block a user