Comments (1)
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)
- README update - Contributing & dual license
- Iterator-based parser
- Supporting additional sentences HOT 20
- Fix failing test HOT 2
- Not all parts of a RMC sentence are parsed HOT 1
- Update README - what is NMEA 0183
- use `f64` (double) over `f32` precision in the Parser HOT 5
- Fix chrono deprecation warning
- MWV and MDA to "all supported messages" test HOT 1
- Update README/docs for a new release
- CI: Fix code coverage reporting
- Parsing of vendor-specific extended sentences that are not included in the `SentenceType` fails. HOT 3
- Enable sentences with features HOT 7
- Support defmt HOT 3
- Formatting/serialization support
- [Docs] List all sentence-types features in lib.rs & README
- #derive[Serialize] for chrono::NaiveTime uses collect_str which cannot be used in no_std
- Configurable GSA fix_stas_prn size HOT 1
- When I import the struct nmea::Nmea the program crashes on ESP32 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nmea.