forked from AllYarnsAreBeautiful/ayab-firmware
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Encoders: only look at leftmost edge of left sensor signal
The code in encA_rising used to reset the carriage position to "zero" for every needle where the sensor was triggered. This caused the zero position to be taken as the rightmost position where a magnet was detected (a magnet is usually detected for two to three needle widths). In turn this caused solenoids to sometimes be activated too late to correctly select needles. By checking for the signal going from "no magnet detected" to "any magnet detected", the "zero" position will be set only at the leftmost edge of the magnet detection area. This should shift everything left by one or two needles, leaving more time for the solenoids to be activated.
- Loading branch information
1 parent
3e32811
commit 1b51c24
Showing
3 changed files
with
71 additions
and
33 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