Increase error threshold for SPI encoders

This commit is contained in:
Paul Guenette
2022-02-02 19:09:46 -05:00
parent ad648dd40a
commit 0aca4911e2

View File

@@ -735,7 +735,7 @@ bool Encoder::update() {
if (abs_spi_pos_updated_ == false) {
// Low pass filter the error
spi_error_rate_ += current_meas_period * (1.0f - spi_error_rate_);
if (spi_error_rate_ > 0.005f) {
if (spi_error_rate_ > 0.05f) {
set_error(ERROR_ABS_SPI_COM_FAIL);
return false;
}