Tighter TPWMTHRS at standstill
parent
e0babfa4ba
commit
91f622fcdc
|
|
@ -64,7 +64,7 @@ bool TMC2130::Init(const MotorParams ¶ms, const MotorCurrents ¤ts, Mot
|
||||||
|
|
||||||
void TMC2130::SetMode(const MotorParams ¶ms, MotorMode mode) {
|
void TMC2130::SetMode(const MotorParams ¶ms, MotorMode mode) {
|
||||||
///0xFFF00 is used as a "Normal" mode threshold since stealthchop will be used at standstill.
|
///0xFFF00 is used as a "Normal" mode threshold since stealthchop will be used at standstill.
|
||||||
WriteRegister(params, Registers::TPWMTHRS, (mode == Stealth) ? 70 : 0xFFF00); // @@TODO should be configurable
|
WriteRegister(params, Registers::TPWMTHRS, (mode == Stealth) ? 70 : 0xFFFF0); // @@TODO should be configurable
|
||||||
}
|
}
|
||||||
|
|
||||||
void TMC2130::SetCurrents(const MotorParams ¶ms, const MotorCurrents ¤ts) {
|
void TMC2130::SetCurrents(const MotorParams ¶ms, const MotorCurrents ¤ts) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue