1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-18 22:05:17 +03:00

Merge pull request #6531 from awolf78/GPS_FROM_MSP

GPS support via MSP
This commit is contained in:
Michael Keller 2018-08-24 08:38:17 +12:00 committed by GitHub
commit 83fa3f31c6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 15 additions and 7 deletions

View file

@ -2144,7 +2144,7 @@ static mspResult_e mspProcessInCommand(uint8_t cmdMSP, sbuf_t *src)
gpsSol.llh.lon = sbufReadU32(src);
gpsSol.llh.altCm = 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: