Function nmea::sentences::parse_gns

source ·
pub fn parse_gns(sentence: NmeaSentence<'_>) -> Result<GnsData, Error<'_>>
Expand description

Parse GNS message

Information from gpsd:

Introduced in NMEA 4.0?

This mostly duplicates RMC, except for the multi GNSS mode indicator.

Example (Ignore the line break):

$GPGNS,224749.00,3333.4268304,N,11153.3538273,W,D,19,0.6,406.110,
       -26.294,6.0,0138,S,*6A

1: 224749.00 UTC HHMMSS.SS. 22:47:49.00 2: 3333.4268304 Latitude DDMM.MMMMM. 33 deg. 33.4268304 min 3: N Latitude North 4: 12311.12 Longitude 111 deg. 53.3538273 min 5: W Longitude West 6: D FAA mode indicator see faa_mode() for possible mode values May be one to six characters. Char 1 = GPS Char 2 = GLONASS Char 3 = Galileo Char 4 = BDS Char 5 = QZSS Char 6 = NavIC (IRNSS) 7: 19 Number of Satellites used in solution 8: 0.6 HDOP 9: 406110 MSL Altitude in meters 10: -26.294 Geoid separation in meters 11: 6.0 Age of differential corrections, in seconds 12: 0138 Differential reference station ID 13: S NMEA 4.1+ Navigation status S = Safe C = Caution U = Unsafe V = Not valid for navigation 8: *6A Mandatory NMEA checksum