1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-25 09:16:07 +03:00

update GPS code

This commit is contained in:
ctzsnooze 2022-04-25 13:08:26 +10:00
parent 229ac66755
commit f7c645bfcd
23 changed files with 671 additions and 490 deletions

View file

@ -144,7 +144,7 @@ void ghstFrameGpsSecondaryTelemetry(sbuf_t *dst)
sbufWriteU8(dst, gpsSol.numSat);
sbufWriteU16(dst, (uint16_t) (GPS_distanceToHome / 10)); // use units of 10m to increase range of U16 to 655.36km
sbufWriteU16(dst, GPS_directionToHome);
sbufWriteU16(dst, GPS_directionToHome / 10);
uint8_t gpsFlags = 0;
if (STATE(GPS_FIX)) {