Function nmea::sentences::parse_hdt

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

Parse HDT message

From gpsd/driver_nmea0183.c

$HEHDT,341.8,T*21

HDT,x.x*hh<cr><lf>

The only data field is true heading in degrees. The following field is required to be ‘T’ indicating a true heading. It is followed by a mandatory nmea_checksum.