able to use rc_yaw_expo and rc_yaw_rate by TBS BST

This commit is contained in:
Larry (TBS) 2016-12-31 07:55:46 +11:00 committed by blckmn
parent 7728bd735e
commit cba064a05a
1 changed files with 4 additions and 0 deletions

View File

@ -704,6 +704,7 @@ static bool bstSlaveProcessFeedbackCommand(uint8_t bstRequest)
bstWrite8(currentControlRateProfile->thrExpo8);
bstWrite16(currentControlRateProfile->tpa_breakpoint);
bstWrite8(currentControlRateProfile->rcYawExpo8);
bstWrite8(currentControlRateProfile->rcYawRate8);
break;
case BST_PID:
for (i = 0; i < PID_ITEM_COUNT; i++) {
@ -1108,6 +1109,9 @@ static bool bstSlaveProcessWriteCommand(uint8_t bstWriteCommand)
if (bstReadDataSize() >= 11) {
currentControlRateProfile->rcYawExpo8 = bstRead8();
}
if (bstReadDataSize() >= 12) {
currentControlRateProfile->rcYawRate8 = bstRead8();
}
} else {
ret = BST_FAILED;
}