mirror of
https://github.com/iNavFlight/inav.git
synced 2025-07-26 01:35:35 +03:00
fixed landing detection with GPS fix estimation
This commit is contained in:
parent
a10b7ceaad
commit
20cdfc8935
1 changed files with 1 additions and 1 deletions
|
@ -715,7 +715,7 @@ bool isFixedWingLandingDetected(void)
|
|||
|
||||
// Check horizontal and vertical velocities are low (cm/s)
|
||||
bool velCondition = fabsf(navGetCurrentActualPositionAndVelocity()->vel.z) < (50.0f * sensitivity) &&
|
||||
( posControl.actualState.velXY < (100.0f * sensitivity) || STATE(GPS_ESTIMATED_FIX));
|
||||
( posControl.actualState.velXY < (100.0f * sensitivity));
|
||||
// Check angular rates are low (degs/s)
|
||||
bool gyroCondition = averageAbsGyroRates() < (2.0f * sensitivity);
|
||||
DEBUG_SET(DEBUG_LANDING, 2, velCondition);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue