1
0
Fork 0
mirror of https://github.com/iNavFlight/inav.git synced 2025-07-23 16:25:26 +03:00

Added OSD font for simulator OSD window

This commit is contained in:
Sergey 2022-04-19 21:54:38 +03:00
parent 3c9844edce
commit a451c63daf
No known key found for this signature in database
GPG key ID: 4A7AC190CD92FE01
2 changed files with 16 additions and 1 deletions

View file

@ -3240,6 +3240,20 @@ bool mspFCProcessInOutCommand(uint16_t cmdMSP, sbuf_t *dst, sbuf_t *src, mspResu
*ret = mspFcSafeHomeOutCommand(dst, src);
break;
case MSP_TELEMETRY:
sbufWriteU8(dst, ARMING_FLAG(ARMED)); // arming status
sbufWriteU8(dst, 0); // arming status
sbufWriteU32(dst, flightModeFlags);
// "1" for error messages
sbufWriteU8(dst, 2); // home position
sbufWriteU16(dst, GPS_distanceToHome);
sbufWriteU16(dst, GPS_directionToHome);
sbufWriteU32(dst, baro.BaroAlt);
sbufWriteU8(dst, 3); // throttle
sbufWriteU8(dst, getThrottlePercent());
*ret = MSP_RESULT_ACK;
break;
case MSP_SIMULATOR:
tmp_u8 = sbufReadU8(src);
if (tmp_u8 == 1) {