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:
parent
fe5e873356
commit
7f08171695
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
/*-----------------------------------------------------------
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue