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 08:28:36 +0000 (01:28 -0700)
commit16482bf5d63eafc5256f14a218d3a374f6584e0a
tree9e410d467282f9923709156c9cd034fe6a6e4048
parentabac6c59d6b004d52a7b782865d2d987732cd61e
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
src/telelco-v0.2/ao_pins.h
src/telelco-v0.3/ao_pins.h