Skip to content

Commit 5b74829

Browse files
committed
Add support for GLL NMEA sentence.
1 parent 397a8f1 commit 5b74829

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

gps_uart.c

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,21 @@ static void gps_uart_parse_nmea(GpsUart* gps_uart, char* line)
7777
}
7878
} break;
7979

80+
case MINMEA_SENTENCE_GLL:
81+
{
82+
struct minmea_sentence_gll frame;
83+
if (minmea_parse_gll(&frame, line))
84+
{
85+
gps_uart->status.latitude = minmea_tocoord(&frame.latitude);
86+
gps_uart->status.longitude = minmea_tocoord(&frame.longitude);
87+
gps_uart->status.time_hours = frame.time.hours;
88+
gps_uart->status.time_minutes = frame.time.minutes;
89+
gps_uart->status.time_seconds = frame.time.seconds;
90+
91+
notification_message_block(gps_uart->notifications, &sequence_blink_red_10);
92+
}
93+
} break;
94+
8095
default:
8196
break;
8297
}

0 commit comments

Comments
 (0)