6namespace RoboidControl {
14class IncrementalEncoder {
21 IncrementalEncoder(unsigned char pulsesPerRevolution = 1,
22 unsigned char distancePerRevolution = 1);
26 virtual int GetPulseCount();
30 virtual float GetPulsesPerSecond(float currentTimeMs);
34 virtual float GetDistance();
39 virtual float GetRevolutionsPerSecond(float currentTimeMs);
46 virtual float GetSpeed(float currentTimeMs);
49 unsigned char pulsesPerRevolution = 1;
52 unsigned char distancePerRevolution = 1;
An Encoder measures the rotations of an axle using a rotary sensor Some encoders are able to detect d...
Definition IncrementalEncoder.h:8
Definition Accelerometer.h:7
Definition AbsoluteEncoder.h:5