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:
parent
b9f601ea32
commit
0c5c78c20d
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue