1
0
Fork 0
mirror of https://github.com/iNavFlight/inav.git synced 2025-07-19 06:15:14 +03:00

landing tweaks

This commit is contained in:
breadoven 2023-01-24 14:21:13 +00:00
parent aa8fcc2991
commit 3560bb57ea
5 changed files with 6 additions and 5 deletions

View file

@ -737,8 +737,8 @@ bool isFixedWingLandingDetected(void)
DEBUG_SET(DEBUG_LANDING, 7, isPitchAxisStatic);
if (isRollAxisStatic && isPitchAxisStatic) {
// Probably landed, low horizontal and vertical velocities and no axis rotation in Roll and Pitch
timeMs_t safetyTimeDelay = 2000 + navConfig()->general.auto_disarm_delay;
return currentTimeMs - fwLandingTimerStartAt > safetyTimeDelay; // check conditions stable for 2s + optional extra delay
timeMs_t safetyTimeDelay = 1000 + navConfig()->general.auto_disarm_delay;
return currentTimeMs - fwLandingTimerStartAt > safetyTimeDelay; // check conditions stable for 1s + optional extra delay
} else {
fixAxisCheck = false;
}