Comments (4)
On that function it uses default value for format and as I see declaration is
bool AddTimeField(double GPSTime, const char *Format="%09.2f");
Where do you have "%06f"
from nmea0183.
The reference is in function NMEA0183SetRMC, which I see doesn't use a format override. Sorry, I must have put the format override in the AddTimeField call myself. For GPRMC messages, most examples I've found don't include fractional seconds so the GPS time field length would always be 6 padded with zeros and no decimal. What was in my copy of the code was a format override of "%06f", which failed to pad zeros. I changed it to "%06.0f" and it worked.
from nmea0183.
Devices should also handle time given in 2 decimals.
RMC:
$--RMC,hhmmss.ss,A,ddmm.mm,a,dddmm.mm,a,x.x,x.x,xxxx,x.x,ahh
NMEA 2.3:
$--RMC,hhmmss.ss,A,ddmm.mm,a,dddmm.mm,a,x.x,x.x,xxxx,x.x,a,mhh
NMEA 4.1:
$--RMC,hhmmss.ss,A,ddmm.mm,a,dddmm.mm,a,x.x,x.x,xxxx,x.x,a,m,s*hh
from nmea0183.
You're right. I just confirmed that the Yamaha 6Y80-01 square gauge on my bench works with the library default format.
Thanks.
from nmea0183.
Related Issues (20)
- MWV True wind != Theoretical wind HOT 2
- LatLonToDouble(const char *data, const char sign) return 0 instead NA when given "" HOT 1
- Added GSV parser HOT 3
- ParseDPT, DBS or DBK missing HOT 4
- Duplicate definitions of the NMEA2000 object HOT 2
- NMEA checksum should accept lowercase HOT 2
- Parsing NMEA messages should be robust against to much fields HOT 5
- Missing class name for breaktime in NMEA0183Messages.cpp and missing macro in NMEA0183Msgs.h HOT 1
- Unit problem in ROT (and others?) HOT 1
- RMC sentence missing field 12, Status - NMEA v2.3 and later HOT 2
- glonass HOT 1
- Use library to only parse sentence HOT 1
- Checksum use ? (Always ON?) HOT 6
- HDG,HDM,HDT conversion to 127250 (and reverse conversion in N2kDataToNMEA0183)
- Basic Issue HOT 25
- Question: how to use NMEA0183ParseGSV_nc HOT 2
- Leading zeros missing in RMC HOT 4
- Any way to display the Library version number for reference? HOT 7
- Improvement to allow correct Parsing of VHW STW data for NASA Electromagnetic Log
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 nmea0183.