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

GPS support via MSP

This commit is contained in:
Alex Wolf 2018-08-07 21:06:54 -04:00
parent 946cbd257f
commit 92d3b7ca6f
3 changed files with 15 additions and 7 deletions

View file

@ -2027,7 +2027,7 @@ static mspResult_e mspProcessInCommand(uint8_t cmdMSP, sbuf_t *src)
gpsSol.llh.lon = sbufReadU32(src);
gpsSol.llh.alt = sbufReadU16(src) * 100; // alt changed from 1m to 0.01m per lsb since MSP API 1.39 by RTH. Received MSP altitudes in 1m per lsb have to upscaled.
gpsSol.groundSpeed = sbufReadU16(src);
GPS_update |= 2; // New data signalisation to GPS functions // FIXME Magic Numbers
GPS_update |= GPS_MSP_UPDATE; // MSP data signalisation to GPS functions
break;
#endif // USE_GPS
case MSP_SET_FEATURE_CONFIG: