mirror of
https://github.com/iNavFlight/inav.git
synced 2025-07-25 09:16:01 +03:00
Add comments
This commit is contained in:
parent
8ad1e5dbde
commit
32ba122975
1 changed files with 2 additions and 0 deletions
|
@ -4088,10 +4088,12 @@ bool isNavHoldPositionActive(void)
|
|||
return true;
|
||||
}
|
||||
|
||||
// No hold required for basic WP type unless it's the last mission waypoint
|
||||
if (FLIGHT_MODE(NAV_WP_MODE)) {
|
||||
return posControl.waypointList[posControl.activeWaypointIndex].action != NAV_WP_ACTION_WAYPOINT || isLastMissionWaypoint();
|
||||
}
|
||||
|
||||
// No hold required for Trackback WPs or for fixed wing autoland WPs not flagged as hold points (returned above if they are)
|
||||
return !FLIGHT_MODE(NAV_FW_AUTOLAND) && !posControl.flags.rthTrackbackActive;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue