mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-22 15:55:48 +03:00
Fix error in rc expo calculation // add configurable expo power
This commit is contained in:
parent
c53c5250a9
commit
3f6860b83b
7 changed files with 20 additions and 3 deletions
|
@ -820,7 +820,7 @@ static bool processOutCommand(uint8_t cmdMSP)
|
|||
serialize16((uint16_t)gyro.targetLooptime);
|
||||
break;
|
||||
case MSP_RC_TUNING:
|
||||
headSerialReply(12);
|
||||
headSerialReply(13);
|
||||
serialize8(currentControlRateProfile->rcRate8);
|
||||
serialize8(currentControlRateProfile->rcExpo8);
|
||||
for (i = 0 ; i < 3; i++) {
|
||||
|
@ -832,6 +832,7 @@ static bool processOutCommand(uint8_t cmdMSP)
|
|||
serialize16(currentControlRateProfile->tpa_breakpoint);
|
||||
serialize8(currentControlRateProfile->rcYawExpo8);
|
||||
serialize8(currentControlRateProfile->rcYawRate8);
|
||||
serialize8(currentControlRateProfile->rcExpoPwr);
|
||||
break;
|
||||
case MSP_PID:
|
||||
headSerialReply(3 * PID_ITEM_COUNT);
|
||||
|
@ -1424,6 +1425,9 @@ static bool processInCommand(void)
|
|||
if (currentPort->dataSize >= 12) {
|
||||
currentControlRateProfile->rcYawRate8 = read8();
|
||||
}
|
||||
if (currentPort->dataSize >=13) {
|
||||
currentControlRateProfile->rcExpoPwr = read8();
|
||||
}
|
||||
} else {
|
||||
headSerialError(0);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue