Coder Social home page Coder Social logo

euberdeveloper / eagletrt-ubx-parser Goto Github PK

View Code? Open in Web Editor NEW
1.0 4.0 1.0 239 KB

A nodejs program for @eagletrt to parse GGA GLL and RMC messages of ubx files to csv or json

License: MIT License

JavaScript 100.00%
ubx csv json gps javascript parser eagletrt

eagletrt-ubx-parser's Introduction

301 - This repository has been moved to the eagletrt organization.

eagletrt-ubx-parser

A nodejs program for @eagletrt to parse GGA GLL and RMC messages of ubx files to csv or json.

Project purpose

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.

How it was made

The project is a very simple NodeJS program and uses no third-party module but chalk for a colourful log.

How to use it

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.json file, it will contain two properties:
    • TYPE is the output format. It can be CSV or JSON
    • INPUTS is an array containing the name (without extension) of the file in the inputs folder that are to be parsed
  • Change the config.json file as wanted
  • Execute npm start, the parsed file will be in the outputs/csv or outputs/json folder

Notes

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.

eagletrt-ubx-parser's People

Contributors

euberdeveloper avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

roog

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.