Adjust SG filtering threshold
parent
a87b981a3d
commit
99c05b79d0
|
|
@ -8,7 +8,7 @@ namespace hal {
|
|||
namespace tmc2130 {
|
||||
|
||||
bool TMC2130::Init(const MotorParams ¶ms, const MotorCurrents ¤ts, MotorMode mode) {
|
||||
sg_filter_threshold = (1 << (8 - params.mRes)) - 1;
|
||||
sg_filter_threshold = (1 << (8 - params.mRes));
|
||||
|
||||
gpio::Init(params.csPin, gpio::GPIO_InitTypeDef(gpio::Mode::output, gpio::Level::high));
|
||||
gpio::Init(params.sgPin, gpio::GPIO_InitTypeDef(gpio::Mode::input, gpio::Pull::up));
|
||||
|
|
|
|||
Loading…
Reference in New Issue