mirror of
https://github.com/iNavFlight/inav.git
synced 2025-07-25 17:25:18 +03:00
Add ability to read Programming PID status via MSP
This commit is contained in:
parent
8f5ac3e51f
commit
67572fed9d
2 changed files with 6 additions and 1 deletions
|
@ -567,6 +567,11 @@ static bool mspFcProcessOutCommand(uint16_t cmdMSP, sbuf_t *dst, mspPostProcessF
|
||||||
sbufWriteU16(dst, programmingPids(i)->gains.FF);
|
sbufWriteU16(dst, programmingPids(i)->gains.FF);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case MSP2_INAV_PROGRAMMING_PID_STATUS:
|
||||||
|
for (int i = 0; i < MAX_PROGRAMMING_PID_COUNT; i++) {
|
||||||
|
sbufWriteU32(dst, programmingPidGetOutput(i));
|
||||||
|
}
|
||||||
|
break;
|
||||||
#endif
|
#endif
|
||||||
case MSP2_COMMON_MOTOR_MIXER:
|
case MSP2_COMMON_MOTOR_MIXER:
|
||||||
for (uint8_t i = 0; i < MAX_SUPPORTED_MOTORS; i++) {
|
for (uint8_t i = 0; i < MAX_SUPPORTED_MOTORS; i++) {
|
||||||
|
|
|
@ -63,6 +63,7 @@
|
||||||
#define MSP2_INAV_GVAR_STATUS 0x2027
|
#define MSP2_INAV_GVAR_STATUS 0x2027
|
||||||
#define MSP2_INAV_PROGRAMMING_PID 0x2028
|
#define MSP2_INAV_PROGRAMMING_PID 0x2028
|
||||||
#define MSP2_INAV_SET_PROGRAMMING_PID 0x2029
|
#define MSP2_INAV_SET_PROGRAMMING_PID 0x2029
|
||||||
|
#define MSP2_INAV_PROGRAMMING_PID_STATUS 0x202A
|
||||||
|
|
||||||
#define MSP2_PID 0x2030
|
#define MSP2_PID 0x2030
|
||||||
#define MSP2_SET_PID 0x2031
|
#define MSP2_SET_PID 0x2031
|
||||||
|
@ -79,4 +80,3 @@
|
||||||
#define MSP2_INAV_SET_SAFEHOME 0x2039
|
#define MSP2_INAV_SET_SAFEHOME 0x2039
|
||||||
|
|
||||||
#define MSP2_INAV_MISC2 0x203A
|
#define MSP2_INAV_MISC2 0x203A
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue