altos/drivers: Make quadrature debounce longer by default. Fix state tracking
authorKeith Packard <keithp@keithp.com>
Mon, 28 May 2018 20:07:06 +0000 (13:07 -0700)
committerKeith Packard <keithp@keithp.com>
Mon, 28 May 2018 20:07:06 +0000 (13:07 -0700)
commita4dbc940cc6c8ff5565e8af21f2dcb4ae090380c
tree9abf96b0ea4c1f1b5fea458ea97e99ab1c42b359
parent7e2a2849f58e98adc1114bb8f3a6319408d93691
altos/drivers: Make quadrature debounce longer by default. Fix state tracking

This increases the default debounce time for quadrature encoders to
30ms, which cleans up the mechanical encoders on TeleLCO v0.2. Also
change state tracking to explicitly check for expected state values to
avoid mis-triggering.

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