GPS speed was 10x too big on frsky telemetry

This commit is contained in:
Andre Bernet 2015-08-06 18:12:20 +02:00
parent aa797a27fd
commit 03a4a594d3
1 changed files with 1 additions and 1 deletions

View File

@ -245,7 +245,7 @@ static void sendSpeed(void)
//Speed should be sent in knots (GPS speed is in cm/s) //Speed should be sent in knots (GPS speed is in cm/s)
sendDataHead(ID_GPS_SPEED_BP); sendDataHead(ID_GPS_SPEED_BP);
//convert to knots: 1cm/s = 0.0194384449 knots //convert to knots: 1cm/s = 0.0194384449 knots
serialize16(GPS_speed * 1944 / 10000); serialize16(GPS_speed * 1944 / 100000);
sendDataHead(ID_GPS_SPEED_AP); sendDataHead(ID_GPS_SPEED_AP);
serialize16((GPS_speed * 1944 / 100) % 100); serialize16((GPS_speed * 1944 / 100) % 100);
} }