Skip to content

Commit 32ba122

Browse files
committed
Add comments
1 parent 8ad1e5d commit 32ba122

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/navigation/navigation.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4088,10 +4088,12 @@ bool isNavHoldPositionActive(void)
40884088
return true;
40894089
}
40904090

4091+
// No hold required for basic WP type unless it's the last mission waypoint
40914092
if (FLIGHT_MODE(NAV_WP_MODE)) {
40924093
return posControl.waypointList[posControl.activeWaypointIndex].action != NAV_WP_ACTION_WAYPOINT || isLastMissionWaypoint();
40934094
}
40944095

4096+
// No hold required for Trackback WPs or for fixed wing autoland WPs not flagged as hold points (returned above if they are)
40954097
return !FLIGHT_MODE(NAV_FW_AUTOLAND) && !posControl.flags.rthTrackbackActive;
40964098
}
40974099

0 commit comments

Comments
 (0)