andrewmcgr/klipper_tmc_autotune

Error after updating to v0.2.0-128-gf32c1b77

seaspotter opened this issue · 2 comments

error

After updating to latest commit v0.2.0-128-gf32c1b77 still there is an error saying the motor definition is not available in database but it is available and before the update with same motor definition it was working.

database

I had the same issue. There was a change that converts the motor name to lowercase but it can't match it since the motor name in the motor database contains an upppercase letter. Just change the "I" to an "i" and it'll work.

EDIT: I just added the config to my autotune_tmc.cfg instead of modifying the database file and "dirtying" the repo. I'll just remove it on the next update.

[motor_constants moons-ms17hd6p420i-05]
resistance: 1.3
inductance: 0.0027
holding_torque: 0.67
max_current: 2.0
steps_per_revolution: 200

I tried to also put that in my tmc_autotune.cfg but I get other errors then that it is not a valid config. I modified the motor_database.cfg with lower case for the "i" now and it is working, even it is "dirtying" the repo now. Hope @andrewmcgr can fix this typo in the repo :)