This function pulls out track made good and speed over ground data from NMEA-0183 G*VTG strings and dumps it into a list.

process_vtg(string = NULL)

Arguments

string

A string with valid NMEA-0183 G*VTG structure.

Value

A list containing 6 data elements recorded in NMEA-0183 G*VTG data chunks. Elements are given appropriate data types.

Examples

# first GPVTG msg from data('n38_demo')
msg_1   <- "$GPVTG,208.02,T,,M,0.32,N,0.59,K,A*38"
gpvtg_1 <- em38:::process_vtg(string = msg_1)