301 - This repository has been moved to the eagletrt organization.
A nodejs program for @eagletrt to parse GGA GLL and RMC messages of ubx files to csv or json.
The telemetry of eagletrt uses two high-precision GPS, one as base-station and another in the car as a rover. The rover GPS data are parsed by the telemetry and saved in a local mongodb. The base-station saves instead a raw ubx log file. The purpose of this project is making easy to parse the wanted data (latitude, longitude timestamp altitude and speed) and save it in an easy-handable format such as json and csv.
The project is a very simple NodeJS program and uses no third-party module but chalk for a colourful log.
To use this parser:
- Clone this repo
- Install nodejs
- Navigate to the root folder of this project
- Execute
npm i - Move the ubx file which are to be exported in the
/inputs folder - Open the
config.jsonfile, it will contain two properties:TYPEis the output format. It can beCSVorJSONINPUTSis an array containing the name (without extension) of the file in the inputs folder that are to be parsed
- Change the
config.jsonfile as wanted - Execute
npm start, the parsed file will be in theoutputs/csvoroutputs/jsonfolder
From the ubx only the GGA, GLL and RMC messages are considered.
Only the latitude longitude timestamp altitude speed and course properties are kept.
The coordinates are converted in a more suitable format, that can be used directly for instance on Google Earth.
Not all messages contain every parameter. In general, every parameter that is not contained in a message is set to NaN.