1
0
Fork 0
mirror of https://github.com/iNavFlight/inav.git synced 2025-07-21 15:25:29 +03:00

update FW flying status for unpowered planes

This commit is contained in:
breadoven 2022-07-01 10:39:01 +01:00
parent b9f601ea32
commit 0c5c78c20d

View file

@ -600,7 +600,7 @@ bool isFixedWingFlying(void)
#ifdef USE_PITOT #ifdef USE_PITOT
airspeed = pitot.airSpeed; airspeed = pitot.airSpeed;
#endif #endif
bool throttleCondition = rcCommand[THROTTLE] > currentBatteryProfile->nav.fw.cruise_throttle; bool throttleCondition = getMotorCount() == 0 || rcCommand[THROTTLE] > currentBatteryProfile->nav.fw.cruise_throttle;
bool velCondition = posControl.actualState.velXY > 250 || airspeed > 250; bool velCondition = posControl.actualState.velXY > 250 || airspeed > 250;
bool launchCondition = isNavLaunchEnabled() && fixedWingLaunchStatus() == FW_LAUNCH_FLYING; bool launchCondition = isNavLaunchEnabled() && fixedWingLaunchStatus() == FW_LAUNCH_FLYING;