nmea_check.Rd
This function calculates the checksum for NMEA-0183 G*GGA strings.
nmea_check(string = NULL)
A string with valid NMEA-0183 G*GGA structure.
Logical; TRUE if checksum is correct.
# first G*GGA msg from data('n38_demo')
msg_1 <- "$GPGGA,015808.00,2726.53758,S,15126.05255,E,1,08,1.0,365.1,M,39.5,M,,*79"
msg_2 <- "$GPG5808.00,2726.53758,S,15126.05255,E,1,08,1.0,365.1,M,39.5,M,,*79"
chk_1 <- em38:::nmea_check(string = msg_1)
chk_2 <- em38:::nmea_check(string = msg_2)