Safety constrain COLIBRI_RACE in BST protocol for gyro_lpf
This commit is contained in:
parent
1f0004d617
commit
016dac3bca
|
@ -993,7 +993,7 @@ static bool bstSlaveProcessFeedbackCommand(uint8_t bstRequest)
|
||||||
bstWrite8(masterConfig.profile[0].rcControlsConfig.yaw_deadband);
|
bstWrite8(masterConfig.profile[0].rcControlsConfig.yaw_deadband);
|
||||||
break;
|
break;
|
||||||
case BST_FC_FILTERS:
|
case BST_FC_FILTERS:
|
||||||
bstWrite16(masterConfig.gyro_lpf);
|
bstWrite16(constrain(masterConfig.gyro_lpf, 0, 1)); // Extra safety to prevent OSD setting corrupt values
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
// we do not know how to handle the (valid) message, indicate error BST
|
// we do not know how to handle the (valid) message, indicate error BST
|
||||||
|
|
Loading…
Reference in New Issue