-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Setting wrong motor stallguard settings on sensorless per-axis homing under some conditions. #9
Comments
@wakass can you please identify how you added the extra debug output. |
I just peppered the trinamic and tmc drivers with hal.write.stream. |
There is a bug, only the axis/axes homed in the active cycle should have the parameters changed. Line 1292 in de41f8a
should be:
|
… the changelog for details.
Found some odd behaviour when trying per axis homing, while having sensorless enabled on partial axes. I suspect the trinamic_on_homing function has some strange logic leading to this.
Plugins_motor/trinamic.c
Line 1184 in d429c50
To trigger the bug it is required to enable the tmc drivers on all drivers (3 in my case).
The bug seems triggered when setting partial sensorless homing axes using $339:
e.g. (debug added in my build)
This is the correct output when enabling all sensorless axes:
$339=7
ok
$HX
[SG: Motor: 2]
[SG: TCOOLTHRS set: 135]
[SG: Sens set: 80]
[SG: Motor: 1]
[SG: TCOOLTHRS set: 281]
[SG: Sens set: 30]
[SG: Motor: 0]
[SG: TCOOLTHRS set: 281]
[SG: Sens set: 100]
Its sets only the last motor parameters (motor 2) and stops.
$339=4
ok
$HX
[SG: Motor: 2]
[SG: TCOOLTHRS set: 135]
[SG: Sens set: 80]
The text was updated successfully, but these errors were encountered: