Adding Destinations and Keyboard Input to NME Files
Previous  Top  Next


When you record an NME file, most likely you are recording a session for which you have set a destination.

However, the resulting recorded NME file has no record of the destination, only input from your GPS hardware.

You can edit the NME file after the fact to include your destination by using the KEY keyword to feed keystrokes to GPSS while the NME file is running.

Here is one way, where Old Salem, the original destination of the real trip recorded to MYTRIP.NME, is added to that NME file by fooling GPSS into thinking the computer operator has searched for the town and then set it as the destination.

Note that Old Salem is the only town beginning with the letters "old sal" in GPSS.WAW (Where are We) file.
 
KEY "`old sal"  
KEY "D"  
$GPRMC,162049,A,4218.8889,N,07124.0863,W,0.000,0.0,101004,16.0,W*4E  
$GPRMC,162050,A,4218.8889,N,07124.0863,W,0.000,0.0,101004,16.0,W*46  
$GPRMC,162051,A,4218.8887,N,07124.0861,W,2.600,348.1,101004,16.0,W*41  
.  
.  
.  

This sends GPSS the reverse single quote that starts a search sequence, followed by the letters to search on. Unseen at the end of the line reading
KEY "`old sal" is the carriage return (ENTER) that initiates the search.

Once GPSS finds Old Salem, the keypress of 'd' sets Old Salem as the destination.

At that point, the GPS data takes over, and you can watch the progress of your car as it heads to Old Salem once again.


By Dave Gehman
© Copyright 2004, Robin Lovelock
Send changes, suggestions to Dave Gehman