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

// Added in API version 1.44

comment over the change done
This commit is contained in:
dev-fred 2020-07-30 11:43:59 +02:00 committed by GitHub
parent 2623560185
commit ed19e91131
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1371,7 +1371,8 @@ static bool mspProcessOutCommand(int16_t cmdMSP, sbuf_t *dst)
sbufWriteU16(dst, (uint16_t)constrain(gpsSol.llh.altCm / 100, 0, UINT16_MAX)); // alt changed from 1m to 0.01m per lsb since MSP API 1.39 by RTH. To maintain backwards compatibility compensate to 1m per lsb in MSP again. sbufWriteU16(dst, (uint16_t)constrain(gpsSol.llh.altCm / 100, 0, UINT16_MAX)); // alt changed from 1m to 0.01m per lsb since MSP API 1.39 by RTH. To maintain backwards compatibility compensate to 1m per lsb in MSP again.
sbufWriteU16(dst, gpsSol.groundSpeed); sbufWriteU16(dst, gpsSol.groundSpeed);
sbufWriteU16(dst, gpsSol.groundCourse); sbufWriteU16(dst, gpsSol.groundCourse);
sbufWriteU16(dst, gpsSol.hdop); // Added in API version 1.44 // Added in API version 1.44
sbufWriteU16(dst, gpsSol.hdop);
break; break;
case MSP_COMP_GPS: case MSP_COMP_GPS: