Generating a GPS log file
From BUG Wiki
Contents |
Introduction
The Virtual BUG emulates a GPS device by retrieving information from a NMEA 0813 compatible log file. The emulated GPS module contains a default log file created with a real GPS module at Bug Lab's head quarters. Hence, the default location of New York, NY 10010. Developers can supply their own GPS Log file via the Virtual BUG Launch configuration. This howto will illustrate how to generate a log file via GoogleEarth and GPS Babel.
Requirements
Instructions
- Launch Google Earth
- Select "Add Path" icon
- Enter a Name for the path
- Draw the path on the map
- Press OK on the "Add Path" dialog
- Right Click on the Path, Select Save As...
- Enter a name, Make sure you select kml format. Press Save.
- From a command prompt:
gpsbabel.exe -i kml -o nmea <the kml file> <the output file>
Results
The ouput should look like:
$GPRMC,000000,V,4048.009,N,07357.457,W,0.00,0.00,010070,,*1F $GPGGA,000000,4048.009,N,07357.457,W,0,00,0.0,0.000,M,0.0,M,,*60 $GPRMC,000000,V,4047.999,N,07357.397,W,0.00,0.00,010070,,*1B $GPGGA,000000,4047.999,N,07357.397,W,0,00,0.0,0.000,M,0.0,M,,*64 $GPRMC,000000,V,4047.981,N,07357.339,W,0.00,0.00,010070,,*16 $GPGGA,000000,4047.981,N,07357.339,W,0,00,0.0,0.000,M,0.0,M,,*69 $GPRMC,000000,V,4047.970,N,07357.272,W,0.00,0.00,010070,,*16 $GPGGA,000000,4047.970,N,07357.272,W,0,00,0.0,0.000,M,0.0,M,,*69 $GPRMC,000000,V,4047.934,N,07357.226,W,0.00,0.00,010070,,*17 $GPGGA,000000,4047.934,N,07357.226,W,0,00,0.0,0.000,M,0.0,M,,*68 $GPRMC,000000,V,4047.916,N,07357.174,W,0.00,0.00,010070,,*13 $GPGGA,000000,4047.916,N,07357.174,W,0,00,0.0,0.000,M,0.0,M,,*6C $GPRMC,000000,V,4047.902,N,07357.115,W,0.00,0.00,010070,,*11 $GPGGA,000000,4047.902,N,07357.115,W,0,00,0.0,0.000,M,0.0,M,,*6E $GPRMC,000000,V,4047.874,N,07357.059,W,0.00,0.00,010070,,*18 $GPGGA,000000,4047.874,N,07357.059,W,0,00,0.0,0.000,M,0.0,M,,*67 $GPRMC,000000,V,4047.846,N,07357.004,W,0.00,0.00,010070,,*11 $GPGGA,000000,4047.846,N,07357.004,W,0,00,0.0,0.000,M,0.0,M,,*6E






