mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 08:15:30 +03:00
Rename 'display_name' to 'pilot_name'; rename 'name' to 'craft_name'; Add the 'MSP2_GET_TEXT' and 'MSP2_SET_TEXT' MSP commands
- add the 'MSP2_GET_TEXT' and 'MSP2_SET_TEXT' MSP2 commands - Support getting/setting the 'MSP2TEXT_PILOT_DISPLAY_NAME' config prop ('pilotConfigMutable()->displayName') - rename 'display_name' to 'pilot_name' - Add the new 'OSD_PILOT_NAME' OSD element in place of the 'OSD_DISPLAY_NAME' one (as they are semantically identical) - Add the 'osd_pilot_name_pos' cli prop in place of 'osd_display_name_pos' - rename 'pilotConfigMutable()'s 'name' to 'craftName' - remove the legacy 'GET_NAME' / 'SET_NAME' MSP commands - replace the 'name' CLI prop for 'craft_name' - add the 'MSP2TEXT_CRAFT_NAME' constant for 'MSP2_GET_TEXT' and 'MSP2_SET_TEXT'
This commit is contained in:
parent
aafcd26fb5
commit
e7df32f020
12 changed files with 99 additions and 49 deletions
|
@ -24,3 +24,9 @@
|
|||
#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
|
||||
#define MSP2_GET_TEXT 0x3006
|
||||
#define MSP2_SET_TEXT 0x3007
|
||||
|
||||
// MSP2_SET_TEXT and MSP2_GET_TEXT variable types
|
||||
#define MSP2TEXT_PILOT_NAME 1
|
||||
#define MSP2TEXT_CRAFT_NAME 2
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue