9#include "../../runtime/InterruptCallback.hpp"
An interface to programmatically represent all odometers.
virtual bool providesDirection() const =0
Return whether the sensor is capable of inferring the direction of movement.
virtual long getDistance()=0
Returns the travelled distance in centimeters where sign can indicate direction if there is hardware ...
virtual float getSpeed()=0
Returns the current speed in meters/sec where sign can indicate direction if there is hardware suppor...
virtual bool isAttached() const =0
Returns whether the sensor has been properly attached.
virtual ~Odometer()=default
const unsigned long kMinimumPulseGap
const unsigned long kDefaultPulsesPerMeter