S-PORT GPS parsing was wrong: latitude and longitude were exchanged with each other

Telemetry simulator latitude and longitude were exchanged with each other (reverted from commit e7f6d321dd)
This commit is contained in:
Damjan Adamic
2016-10-06 10:51:45 +02:00
parent e7f6d321dd
commit def3ba9d66
2 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -173,9 +173,9 @@ void sportProcessTelemetryPacket(uint8_t * packet)
value = -value;
value = (value * 5) / 3; // min/10000 => deg/1000000
if (data & (1 << 31))
sportProcessTelemetryPacket(id, 0, instance, value, UNIT_GPS_LATITUDE);
else
sportProcessTelemetryPacket(id, 0, instance, value, UNIT_GPS_LONGITUDE);
else
sportProcessTelemetryPacket(id, 0, instance, value, UNIT_GPS_LATITUDE);
}
else if (id >= RBOX_BATT1_FIRST_ID && id <= RBOX_BATT2_LAST_ID) {
sportProcessTelemetryPacket(id, 0, instance, data & 0xffff);