altos/driver: Improve quadrature debouncing for mechanical encoders
authorKeith Packard <keithp@keithp.com>
Sun, 17 Jun 2018 06:51:26 +0000 (23:51 -0700)
committerKeith Packard <keithp@keithp.com>
Sun, 17 Jun 2018 06:51:26 +0000 (23:51 -0700)
commit1d9f7ce6cf3c55095f7e6e741a83d3de343ca70f
tree0064bc529e1e398c3d6f733ab36825410c3bec60
parentf7f3353eed0e8c5d04b5e6dcf7f323babe6e6a57
altos/driver: Improve quadrature debouncing for mechanical encoders

Track state of encoder better and only bump values when the full
motion is detected (all four states).

Signed-off-by: Keith Packard <keithp@keithp.com>
src/drivers/ao_quadrature.c