libnmea icon indicating copy to clipboard operation
libnmea copied to clipboard

add new test for odd applanix time parsing

Open andre-nguyen opened this issue 7 years ago • 0 comments

I encountered an odd thing with a GPRMC sentence coming from an APX15. The time stamp was formatted as a floating point and had trailing zeros. Thought it would be interesting to have a test for that case (it passes). Here is a sample sentence.

$GPRMC,151148.00,A,4528.39932766,N,07335.43007565,W,4.122,303.949,171218,14.3542,W,A*3F

I might also submit a PR for the new "fix mode" field that can appear right before the checksum:

The last version 2 iteration of the NMEA standard was 2.3. It added a mode indicator to several sentences which is used to indicate the kind of fix the receiver currently has. This indication is part of the signal integrity information needed by the FAA. The value can be A=autonomous, D=differential, E=Estimated, N=not valid, S=Simulator. Sometimes there can be a null value as well. Only the A and D values will correspond to an Active and reliable Sentence. This mode character has been added to the RMC, RMB, VTG, and GLL, sentences and optionally some others including the BWC and XTE sentences.

Edit: I think the sentence I posted above is actually non-standard as it goes over the maximum allowed characters in an NMEA sentence but the decimal seconds are an optional part of the standard.

andre-nguyen avatar Dec 19 '18 14:12 andre-nguyen