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

Update navigation_fixedwing.c

This commit is contained in:
breadoven 2022-01-18 23:02:31 +00:00
parent fe5e873356
commit 7f08171695

View file

@ -602,8 +602,9 @@ bool isFixedWingFlying(void)
#endif
bool throttleCondition = rcCommand[THROTTLE] > currentBatteryProfile->nav.fw.cruise_throttle;
bool velCondition = posControl.actualState.velXY > 250 || airspeed > 250;
bool launchCondition = isNavLaunchEnabled() && fixedWingLaunchStatus() == FW_LAUNCH_FLYING;
return isImuHeadingValid() && throttleCondition && velCondition;
return (isImuHeadingValid() && throttleCondition && velCondition) || launchCondition;
}
/*-----------------------------------------------------------