able to use rc_yaw_expo and rc_yaw_rate by TBS BST
This commit is contained in:
parent
7728bd735e
commit
cba064a05a
|
@ -704,6 +704,7 @@ static bool bstSlaveProcessFeedbackCommand(uint8_t bstRequest)
|
||||||
bstWrite8(currentControlRateProfile->thrExpo8);
|
bstWrite8(currentControlRateProfile->thrExpo8);
|
||||||
bstWrite16(currentControlRateProfile->tpa_breakpoint);
|
bstWrite16(currentControlRateProfile->tpa_breakpoint);
|
||||||
bstWrite8(currentControlRateProfile->rcYawExpo8);
|
bstWrite8(currentControlRateProfile->rcYawExpo8);
|
||||||
|
bstWrite8(currentControlRateProfile->rcYawRate8);
|
||||||
break;
|
break;
|
||||||
case BST_PID:
|
case BST_PID:
|
||||||
for (i = 0; i < PID_ITEM_COUNT; i++) {
|
for (i = 0; i < PID_ITEM_COUNT; i++) {
|
||||||
|
@ -1108,6 +1109,9 @@ static bool bstSlaveProcessWriteCommand(uint8_t bstWriteCommand)
|
||||||
if (bstReadDataSize() >= 11) {
|
if (bstReadDataSize() >= 11) {
|
||||||
currentControlRateProfile->rcYawExpo8 = bstRead8();
|
currentControlRateProfile->rcYawExpo8 = bstRead8();
|
||||||
}
|
}
|
||||||
|
if (bstReadDataSize() >= 12) {
|
||||||
|
currentControlRateProfile->rcYawRate8 = bstRead8();
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
ret = BST_FAILED;
|
ret = BST_FAILED;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue