mirror of
https://github.com/odriverobotics/ODrive.git
synced 2026-02-06 07:01:52 +08:00
Increase error threshold for SPI encoders
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user