mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-20 06:45:16 +03:00
Add Rates type to Msp
This commit is contained in:
parent
3853b1aa22
commit
2c8ca3927f
1 changed files with 8 additions and 0 deletions
|
@ -1225,6 +1225,9 @@ static bool mspProcessOutCommand(int16_t cmdMSP, sbuf_t *dst)
|
|||
sbufWriteU16(dst, currentControlRateProfile->rate_limit[FD_PITCH]);
|
||||
sbufWriteU16(dst, currentControlRateProfile->rate_limit[FD_YAW]);
|
||||
|
||||
// added in 1.43
|
||||
sbufWriteU8(dst, currentControlRateProfile->rates_type);
|
||||
|
||||
break;
|
||||
|
||||
case MSP_PID:
|
||||
|
@ -2260,6 +2263,11 @@ static mspResult_e mspProcessInCommand(mspDescriptor_t srcDesc, int16_t cmdMSP,
|
|||
currentControlRateProfile->rate_limit[FD_YAW] = sbufReadU16(src);
|
||||
}
|
||||
|
||||
// version 1.43
|
||||
if (sbufBytesRemaining(src) >= 1) {
|
||||
currentControlRateProfile->rates_type = sbufReadU8(src);
|
||||
}
|
||||
|
||||
initRcProcessing();
|
||||
} else {
|
||||
return MSP_RESULT_ERROR;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue