GPS internals: Difference between revisions

Jump to navigation Jump to search
m
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. Again this exists for compatibility reasons, and SHOULD NOT be used by aircraft or instruments.
<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.


===Commands and the scratch===
===Commands and the scratch===
580

edits

Navigation menu