1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-23 08:15:30 +03:00

Maintain previous MSP GPS Heading resolution

This commit is contained in:
ctzsnooze 2022-08-31 09:06:53 +10:00
parent 21594c62e1
commit 8f29388546

View file

@ -1468,7 +1468,7 @@ static bool mspProcessOutCommand(int16_t cmdMSP, sbuf_t *dst)
case MSP_COMP_GPS:
sbufWriteU16(dst, GPS_distanceToHome);
sbufWriteU16(dst, GPS_directionToHome);
sbufWriteU16(dst, GPS_directionToHome / 10); // resolution increased in Betaflight 4.4 by factor of 10, this maintains backwards compatibility for DJI OSD
sbufWriteU8(dst, GPS_update & 1);
break;