Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 13 additions & 13 deletions examples/gps/gps_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -99,21 +99,21 @@

if (minmea_parse_rmc(&frame, line))
{
printf("Fixed-point Latitude...........: %" PRIdLEAST32
"\n",
printf("Fixed-point Latitude................: %"
PRIdLEAST32 " (NMEA * 1000)\n",
minmea_rescale(&frame.latitude, 1000));
printf("Fixed-point Longitude..........: %" PRIdLEAST32
"\n",
printf("Fixed-point Longitude...............: %"
PRIdLEAST32 " (NMEA * 1000)\n",
minmea_rescale(&frame.longitude, 1000));
printf("Fixed-point Speed..............: %" PRIdLEAST32
"\n",
printf("Fixed-point Speed...................: %"
PRIdLEAST32 " (knots * 1000)\n",
minmea_rescale(&frame.speed, 1000));
printf("Floating point degree latitude.: %2.6f\n",
printf("Floating point Latitude.............: %2.6f degrees\n",

Check failure on line 111 in examples/gps/gps_main.c

View workflow job for this annotation

GitHub Actions / check

Long line found
minmea_tocoord(&frame.latitude));
printf("Floating point degree longitude: %2.6f\n",
printf("Floating point Longitude............: %2.6f degrees\n",

Check failure on line 113 in examples/gps/gps_main.c

View workflow job for this annotation

GitHub Actions / check

Long line found
minmea_tocoord(&frame.longitude));
printf("Floating point speed...........: %2.6f\n",
minmea_tocoord(&frame.speed));
printf("Floating point Speed................: %2.6f knots\n",

Check failure on line 115 in examples/gps/gps_main.c

View workflow job for this annotation

GitHub Actions / check

Long line found
minmea_tofloat(&frame.speed));
}
else
{
Expand All @@ -130,9 +130,9 @@
{
printf("Fix quality....................: %d\n",
frame.fix_quality);
printf("Altitude.......................: %" PRIdLEAST32
"\n",
frame.altitude.value);
printf("Altitude.......................: %2.6f %c\n",
minmea_tofloat(&frame.altitude),
frame.altitude_units ? frame.altitude_units : '?');
printf("Tracked satellites.............: %d\n",
frame.satellites_tracked);
}
Expand Down
Loading