-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Revert "Reset SG when writing to GCONF or COOLCONF (#300)" This reverts commit bc56fba. * Test for "FINISHED" in TMC2130 This ensures no extra output goes untested * TMC2130: handle DIAG correctly when entering STST TMC2130 clears DIAG when the overload condition is resolved, not when moving off an endstop. This means that when the motor is not moving DIAG should be cleared. Transition to standstill implies this, so handle this situation by adding a couple of helper functions to set/clear DIAG consistently and use them when StandStill is detected. Add tests to check this condition. Also cancel the StandStill timer when the object is destroyed to avoid callbacks on uninitialized instances, causing crashes during quit. * TMC2130: add some extra commentary to the test sequence * TMC2130: clear DIAG also when changing state As a followup from 997ba3d, disabling motors should have the same end result by clearing the DIAG flag. We do this by triggering standstill internally, which is not 100% accurate if we take into account freewheeling and/or passive braking, but good enough to allow full debugging of PowerPanic on the Prusa FW.
- Loading branch information
Showing
4 changed files
with
62 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters