The apds9960 library provides an interface for retrieving gestures from the ADPS-9960 IC, in particular swiping up, down, left, and right. Providing these discrete values to clients should make it easier to
Follow a narrow line with one corner sensor, or stay between two lines using two corner sensors
Detect relative motion past an object, rather than remembering the previous state and detecting a change
Make course corrections when following a moving object
The apds9960 library provides an interface for retrieving gestures from the ADPS-9960 IC, in particular swiping up, down, left, and right. Providing these discrete values to clients should make it easier to
The changes to the API in rosa/rpi/io_controller.py should be straightforward, essentially
Although since the Rosa is polled by
WsIOHandler.StateGetter
, probably that should be two separate methods.Testing will be difficult in CI because there is not (yet) a mock for the hardware