mirror of
https://github.com/iNavFlight/inav.git
synced 2025-07-25 17:25:18 +03:00
MSP to get logic conditions status
This commit is contained in:
parent
cc2b2c6753
commit
50bb6c7fe6
2 changed files with 7 additions and 0 deletions
|
@ -490,6 +490,11 @@ static bool mspFcProcessOutCommand(uint16_t cmdMSP, sbuf_t *dst, mspPostProcessF
|
|||
sbufWriteU8(dst, logicConditions(i)->flags);
|
||||
}
|
||||
break;
|
||||
case MSP2_INAV_LOGIC_CONDITIONS_STATUS:
|
||||
for (int i = 0; i < MAX_LOGIC_CONDITIONS; i++) {
|
||||
sbufWriteU32(dst, logicConditionGetValue(i));
|
||||
}
|
||||
break;
|
||||
#endif
|
||||
case MSP2_COMMON_MOTOR_MIXER:
|
||||
for (uint8_t i = 0; i < MAX_SUPPORTED_MOTORS; i++) {
|
||||
|
|
|
@ -57,6 +57,8 @@
|
|||
#define MSP2_INAV_SET_SERVO_MIXER 0x2021
|
||||
#define MSP2_INAV_LOGIC_CONDITIONS 0x2022
|
||||
#define MSP2_INAV_SET_LOGIC_CONDITIONS 0x2023
|
||||
#define MSP2_INAV_LOGIC_CONDITIONS_STATUS 0x2026
|
||||
|
||||
|
||||
#define MSP2_PID 0x2030
|
||||
#define MSP2_SET_PID 0x2031
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue