580
edits
No edit summary |
No edit summary |
||
Line 25: | Line 25: | ||
===Commands and the scratch=== | ===Commands and the scratch=== | ||
The GPS has a simple command system - it expects the properties under <tt>gps/scratch</tt> to be populated with some parameters, and then a command property to be set. Information is also returned via the <tt>gps/scratch</tt> properties. For example, to go direct to a waypoint, it must be loaded into the scratch, and a 'direct' command executed. To find the nearest VOR, set scratch/type to | The GPS has a simple command system - it expects the properties under <tt>gps/scratch</tt> to be populated with some parameters, and then a command property to be set. Information is also returned via the <tt>gps/scratch</tt> properties. For example, to go direct to a waypoint, it must be loaded into the scratch, and a 'direct' command executed. To find the nearest VOR, set <tt>scratch/type</tt> to <tt>vor</tt> and execute a <tt>nearest</tt> command. The scratch will be updated with information about the result (if one was found) - and then a 'direct' or 'obs' command can be executed to use the waypoint. | ||
edits