Merge pull request #9499 from Asizon/motorOutputLimitMsp
Motor_output_limit settings to msp
This commit is contained in:
commit
f68b0422da
|
@ -1793,6 +1793,9 @@ static bool mspProcessOutCommand(int16_t cmdMSP, sbuf_t *dst)
|
|||
#else
|
||||
sbufWriteU8(dst, 0);
|
||||
#endif
|
||||
// Added in MSP API 1.43
|
||||
sbufWriteU8(dst, currentPidProfile->motor_output_limit);
|
||||
sbufWriteU8(dst, currentPidProfile->auto_profile_cell_count);
|
||||
|
||||
break;
|
||||
case MSP_SENSOR_CONFIG:
|
||||
|
@ -2634,6 +2637,11 @@ static mspResult_e mspProcessInCommand(mspDescriptor_t srcDesc, int16_t cmdMSP,
|
|||
sbufReadU8(src);
|
||||
#endif
|
||||
}
|
||||
if(sbufBytesRemaining(src) >= 2) {
|
||||
// Added in MSP API 1.43
|
||||
currentPidProfile->motor_output_limit = sbufReadU8(src);
|
||||
currentPidProfile->auto_profile_cell_count = sbufReadU8(src);
|
||||
}
|
||||
pidInitConfig(currentPidProfile);
|
||||
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue