580
edits
m (→Introduction) |
|||
Line 21: | Line 21: | ||
The active waypoint is available as <tt>gps/wp/wp[1]</tt>, for historical reasons. Various interesting values are computed for the active waypoint, such as distance, bearing and so on. | The active waypoint is available as <tt>gps/wp/wp[1]</tt>, for historical reasons. Various interesting values are computed for the active waypoint, such as distance, bearing and so on. | ||
<tt>gps/wp/wp[0]</tt> contains another waypoint, which varies depending on mode. For DTO and OBS modes, it is the position at the point the mode was entered; for LEG mode it is the previous waypoint in the route. | <tt>gps/wp/wp[0]</tt> contains another waypoint, which varies depending on mode. For DTO and OBS modes, it is the position at the point the mode was entered; for LEG mode it is the previous waypoint in the route. In general the GPS is navigating ''from'' wp0, and ''towards'' wp1. | ||
In the future, when other kinds of leg exist, the active waypoint may not have a defined position; for example if the active leg is a hold, [[DME arc]] or procedure turn. | |||
===Commands and the scratch=== | ===Commands and the scratch=== |
edits