10
edits
m (Robot: Cosmetic changes) |
No edit summary |
||
Line 29: | Line 29: | ||
=== 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 is 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. | The GPS has a simple command system - it expects the properties under <tt>instrumentation/gps/scratch</tt> to be populated with some parameters, and then a command property to be set under <tt>instrumentation/gps/command</tt>. Information is also returned via the <tt>instrumentation/gps/scratch</tt> properties. For example, to go direct to a waypoint, it is 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 (to execute a command set the command name as a string at the command property <tt>instrumentation/gps/command</tt>). 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. | ||
== Command List == | == Command List == |
edits