GithubHelp home page GithubHelp logo

xxGNS parsing issue about nmea HOT 1 OPEN

StefanB7 avatar StefanB7 commented on June 12, 2024
xxGNS parsing issue

from nmea.

Comments (1)

elpiel avatar elpiel commented on June 12, 2024

Hello @StefanB7,
I've missed posting my comment in September to the issue so sorry about the delay.
First of all - thank you for reporting the issue!

Do you have any specific questions? Maybe you can take a look at nom first and see how we can parse more than the 2 we have defined now.

Accordingly to the gpsd docs - https://gpsd.gitlab.io/gpsd/NMEA.html#_gns_fix_data, the first two are for GPS and GLONASS.
We could read all characters up to the comma , with nom, parse the first one (GPS) and the rest we could put behind an Option.
We could keep the 2nd FAA mode required then and have a heapless::Vec (fixed size Vec) with maximum of e.g. 4 (6 total - 2).

struct FaaModes {
   /// This is usually GPS
   sys_state0: FaaMode,
   //// Rest of the fix flags, could be 0 or more than 1
   sys_staten: Option<FaaModesN>,
}

struct FaaModesN {
    /// Usually GLONASS
    sys_state1: FaaMode,
    sys_states: heapless::Vec<FaaMode, 4>,
}

Do you know if u-blox defines a maximum number of FAA modes that it can return?
Maybe there's something in the Datasheet for your module?

from nmea.

Related Issues (20)

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.