1
0
Fork 0
mirror of https://github.com/iNavFlight/inav.git synced 2025-07-26 01:35:35 +03:00

Update navigation.c

This commit is contained in:
breadoven 2024-06-16 08:24:45 +01:00
parent af8a561ed0
commit 68e749831e

View file

@ -3353,7 +3353,7 @@ void updateLandingStatus(timeMs_t currentTimeMs)
if (STATE(AIRPLANE) && isFlightDetected()) { if (STATE(AIRPLANE) && isFlightDetected()) {
// Cancel landing detection flag if fixed wing redetected in flight // Cancel landing detection flag if fixed wing redetected in flight
resetLandingDetector(); resetLandingDetector();
} else { } else if (STATE(MULTIROTOR)) {
// For multirotor - reactivate landing detector without disarm when throttle raised toward hover throttle // For multirotor - reactivate landing detector without disarm when throttle raised toward hover throttle
landingDetectorIsActive = rxGetChannelValue(THROTTLE) < (0.5 * (currentBatteryProfile->nav.mc.hover_throttle + getThrottleIdleValue())); landingDetectorIsActive = rxGetChannelValue(THROTTLE) < (0.5 * (currentBatteryProfile->nav.mc.hover_throttle + getThrottleIdleValue()));
} }