Giter Site home page Giter Site logo

nmeaparser's Introduction

NmeaParser

This project demonstrate how to parser NMEA protocol.

How to use

  1. Include "nmeaparser.h" in your source file.
  2. Create a nmeaparser: struct nmea_parser parser[1];.
  3. Init the parser with nmea_parser_init(parser);.
  4. Create your navigation report function: void my_reporter(struct nav_data *navdata){...}.
  5. Setup parser's report funtion: parser->report_nav_status = my_reporter;.
  6. When read data from serialport or file, add thee data character by character to the parser with nmea_parser_putchar(parser, c).
  7. When navigation data is ready, parser will trigger my_reporter function to report navigation status.

Modules

Module Files Description
nmea_reader nmeardr.h nmeardr.c Read NMEA data, contains one NMEA sentence.
nmea_tokenizer nmeatknzr.h nmeatknzr.c Split NMEA sentence into tokens.
parser nmeaparser.h nmeaparser.c Parse nmea from tokens.
nav_data navdata.h navdata.c Navigation data.
  1. Add NMEA data to nmea_reader by character.
  2. If encounter '\n', using nmea_tokenizer split nmea_reader.
  3. Parse nmea_tokenizer , and store results int nav_data.
  4. If encounter GGA sentence, print nav_data.

Navigation data

Date and Time

Date and time are in UTC.

Latitude

In degrees.

Positive for North, and negative for South.

Longitude

In degrees.

Positive for East, and negative for West.

Satellite's PRN and SVID

PRN is the satellite's NO. in NMEA.

SVID is the index in satellite's array.

SVID range Constellation type
1-64 GPS
65-96 GLONASS
201-264 Beidou

nmeaparser's People

Contributors

zxcwhale avatar

Watchers

James Cloos avatar

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.