From cba064a05af63c7f6ee6bd2367e2c91ed5ea6da4 Mon Sep 17 00:00:00 2001 From: "Larry (TBS)" Date: Sat, 31 Dec 2016 07:55:46 +1100 Subject: [PATCH] able to use rc_yaw_expo and rc_yaw_rate by TBS BST --- src/main/target/COLIBRI_RACE/i2c_bst.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/target/COLIBRI_RACE/i2c_bst.c b/src/main/target/COLIBRI_RACE/i2c_bst.c index d7f988691..15e522482 100644 --- a/src/main/target/COLIBRI_RACE/i2c_bst.c +++ b/src/main/target/COLIBRI_RACE/i2c_bst.c @@ -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; }