Why $GPRMC nmea is different than AT+QGPSLOC=2?

Hi @dima,

Format of AT+QGPSLOC=1 command:

ddmm.mmmmmm N/S (Quoted from GPGGA sentence)
dd --> 00-89 (degree)
mm.mmmmmm --> 00.000000-59.999999 (minute)
N/S --> North latitude/South latitude

Strip the dd from the message i.e.: ddmm.mmmm

Which becomes
variable1 = dd
variable2 = mm.mmmm
variable3 = variable2 / 60

Note: To convert this to the decimal format, we start by keeping the DD portion and simply divide the MM.MMM by 60 to firm the MMM portion of the decimal format.

Rejoin values to make dd.dddd

dd.dddd = variable1.variable3

Your result: 2835.682564 N , 08112.614136 W

Lat: ddmm.mmmm: 2835.682564 N
Lat: dd + mm.mmmm: 28 + 35.682564
Lat: dd + dd.dddd: 28 + (35.682564 / 60)
Lat: dd.dddd: 28.5947094

Long: dddmm.mmmm: 08112.614136 W
Long: ddd + mm.mmmm: 081 + 12.614136
Long: ddd + dd.dddd: 081 + (12.614136 / 60)
Long: ddd.dddd: -81.2102356 (As this is west it is negative, east is positive)

1 Like