Fixes #2577: order of displayed GPS coordinates changed according to ISO 6709 (latitude before longitude) (#3878)
This commit is contained in:
committed by
Bertrand Songis
parent
c4a1dc4c70
commit
7509146a8f
@@ -1084,12 +1084,12 @@ void drawGPSPosition(coord_t x, coord_t y, int32_t longitude, int32_t latitude,
|
||||
if (flags & DBLSIZE) {
|
||||
x -= (g_eeGeneral.gpsFormat == 0 ? 54 : 51);
|
||||
flags &= ~0x0F00; // TODO constant
|
||||
drawGPSCoord(x, y, longitude, "EW", flags);
|
||||
drawGPSCoord(x, y+FH, latitude, "NS", flags);
|
||||
drawGPSCoord(x, y, latitude, "NS", flags);
|
||||
drawGPSCoord(x, y+FH, longitude, "EW", flags);
|
||||
}
|
||||
else {
|
||||
drawGPSCoord(x, y, longitude, "EW", flags, false);
|
||||
drawGPSCoord(lcdNextPos+FWNUM, y, latitude, "NS", flags, false);
|
||||
drawGPSCoord(x, y, latitude, "NS", flags, false);
|
||||
drawGPSCoord(lcdNextPos+FWNUM, y, longitude, "EW", flags, false);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -877,12 +877,12 @@ void drawGPSSensorValue(coord_t x, coord_t y, TelemetryItem & telemetryItem, Lcd
|
||||
if (att & DBLSIZE) {
|
||||
x -= (g_eeGeneral.gpsFormat == 0 ? 54 : 51);
|
||||
att &= ~0x0F00; // TODO constant
|
||||
drawGPSCoord(x, y, telemetryItem.gps.longitude, "EW", att, true);
|
||||
drawGPSCoord(x, y+FH, telemetryItem.gps.latitude, "NS", att, true);
|
||||
drawGPSCoord(x, y, telemetryItem.gps.latitude, "NS", att, true);
|
||||
drawGPSCoord(x, y+FH, telemetryItem.gps.longitude, "EW", att, true);
|
||||
}
|
||||
else {
|
||||
drawGPSCoord(x, y, telemetryItem.gps.longitude, "EW", att, false);
|
||||
drawGPSCoord(lcdNextPos+FWNUM, y, telemetryItem.gps.latitude, "NS", att, false);
|
||||
drawGPSCoord(x, y, telemetryItem.gps.latitude, "NS", att, false);
|
||||
drawGPSCoord(lcdNextPos+FWNUM, y, telemetryItem.gps.longitude, "EW", att, false);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -371,12 +371,12 @@ void drawGPSCoord(coord_t x, coord_t y, int32_t value, const char * direction, L
|
||||
void drawGPSPosition(coord_t x, coord_t y, int32_t longitude, int32_t latitude, LcdFlags flags)
|
||||
{
|
||||
if (flags & EXPANDED) {
|
||||
drawGPSCoord(x, y, longitude, "EW", flags, true);
|
||||
drawGPSCoord(x, y + FH, latitude, "NS", flags, true);
|
||||
drawGPSCoord(x, y, latitude, "NS", flags, true);
|
||||
drawGPSCoord(x, y + FH, longitude, "EW", flags, true);
|
||||
}
|
||||
else {
|
||||
drawGPSCoord(x, y, longitude, "EW", flags, false);
|
||||
drawGPSCoord(lcdNextPos+5, y, latitude, "NS", flags, false);
|
||||
drawGPSCoord(x, y, latitude, "NS", flags, false);
|
||||
drawGPSCoord(lcdNextPos+5, y, longitude, "EW", flags, false);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user