mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 08:15:30 +03:00
Separate OSD warnings from OSD task and make available via MSP
Provides a properly implemented way for MSP query type OSD implementations (like DJI) to display OSD warnings. Separates the warnings generation from the OSD task and shares common code to make the text available for the OSD and/or via MSP. Eliminates the need to implement hacks and workarounds like using the `CRAFT_NAME` field to display warnings. Since the warnings logic is now separate, the OSD task does not need to be running unlike other hacks. Adds the `MSP2_GET_OSD_WARNINGS` message formatted as follows: ``` byte description 0 Display attributes including blink (see displayPortAttr_e in drivers/display.h) 1 Length of warning text 2-n Warning text characters ```
This commit is contained in:
parent
21eea5db21
commit
84b6730cdd
9 changed files with 417 additions and 288 deletions
|
@ -23,3 +23,4 @@
|
|||
#define MSP2_SET_MOTOR_OUTPUT_REORDERING 0x3002
|
||||
#define MSP2_SEND_DSHOT_COMMAND 0x3003
|
||||
#define MSP2_GET_VTX_DEVICE_STATUS 0x3004
|
||||
#define MSP2_GET_OSD_WARNINGS 0x3005 // returns active OSD warning message text
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue