mirror of
https://github.com/iNavFlight/inav.git
synced 2025-07-23 00:05:28 +03:00
simplify hold state logic
This commit is contained in:
parent
83de3f941d
commit
8ad1e5dbde
1 changed files with 1 additions and 4 deletions
|
@ -4092,10 +4092,7 @@ bool isNavHoldPositionActive(void)
|
|||
return posControl.waypointList[posControl.activeWaypointIndex].action != NAV_WP_ACTION_WAYPOINT || isLastMissionWaypoint();
|
||||
}
|
||||
|
||||
return posControl.navState != NAV_STATE_FW_LANDING_APPROACH &&
|
||||
posControl.navState != NAV_STATE_FW_LANDING_GLIDE &&
|
||||
posControl.navState != NAV_STATE_FW_LANDING_FLARE &&
|
||||
!posControl.flags.rthTrackbackActive;
|
||||
return !FLIGHT_MODE(NAV_FW_AUTOLAND) && !posControl.flags.rthTrackbackActive;
|
||||
}
|
||||
|
||||
float getActiveSpeed(void)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue