1
0
Fork 0
mirror of https://github.com/iNavFlight/inav.git synced 2025-07-25 01:05:21 +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); *ret = mspFcSafeHomeOutCommand(dst, src);
break; 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: case MSP_SIMULATOR:
tmp_u8 = sbufReadU8(src); tmp_u8 = sbufReadU8(src);
if (tmp_u8 == 1) { if (tmp_u8 == 1) {

View file

@ -257,6 +257,7 @@
#define MSP_RC_DEADBAND 125 //out message deadbands for yaw alt pitch roll #define MSP_RC_DEADBAND 125 //out message deadbands for yaw alt pitch roll
#define MSP_SENSOR_ALIGNMENT 126 //out message orientation of acc,gyro,mag #define MSP_SENSOR_ALIGNMENT 126 //out message orientation of acc,gyro,mag
#define MSP_LED_STRIP_MODECOLOR 127 //out message Get LED strip mode_color settings #define MSP_LED_STRIP_MODECOLOR 127 //out message Get LED strip mode_color settings
#define MSP_TELEMETRY 128 //out message Get controller telemetry
#define MSP_SET_RAW_RC 200 //in message 8 rc chan #define MSP_SET_RAW_RC 200 //in message 8 rc chan
#define MSP_SET_RAW_GPS 201 //in message fix, numsat, lat, lon, alt, speed #define MSP_SET_RAW_GPS 201 //in message fix, numsat, lat, lon, alt, speed
@ -287,7 +288,7 @@
#define MSP_DEBUGMSG 253 //out message debug string buffer #define MSP_DEBUGMSG 253 //out message debug string buffer
#define MSP_DEBUG 254 //out message debug1,debug2,debug3,debug4 #define MSP_DEBUG 254 //out message debug1,debug2,debug3,debug4
#define MSP_V2_FRAME 255 //MSPv2 payload indicator #define MSP_V2_FRAME 255 //MSPv2 payload indicator
#define MSP_SIMULATOR 256 //Set simulator state #define MSP_SIMULATOR 256 //inout Set simulator state
// Additional commands that are not compatible with MultiWii // Additional commands that are not compatible with MultiWii
#define MSP_STATUS_EX 150 //out message cycletime, errors_count, CPU load, sensor present etc #define MSP_STATUS_EX 150 //out message cycletime, errors_count, CPU load, sensor present etc