Function nmea::sentences::parse_rmc

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

Parse RMC message

From gpsd:

RMC,225446.33,A,4916.45,N,12311.12,W,000.5,054.7,191194,020.3,E,A*68

1 225446.33 Time of fix 22:54:46 UTC 2 A Status of Fix: A = Autonomous, valid; D = Differential, valid; V = invalid 3,4 4916.45,N Latitude 49 deg. 16.45 min North 5,6 12311.12,W Longitude 123 deg. 11.12 min West 7 000.5 Speed over ground, Knots 8 054.7 Course Made Good, True north 9 181194 Date of fix 18 November 1994 10,11 020.3,E Magnetic variation 20.3 deg East 12 A FAA mode indicator (NMEA 2.3 and later) A=autonomous, D=differential, E=Estimated, N=not valid, S=Simulator, M=Manual input mode *68 mandatory nmea_checksum

SiRF chipsets don’t return either Mode Indicator or magnetic variation.