1#ifndef TRACTION_ENCODER_H
2#define TRACTION_ENCODER_H
25 unsigned long last_time;
33 static bool initialized;
Interface for a generic filter, with parameterized type.
Definition Filter.h:9
Class used to read data from traction rotary encoders.
Definition TractionEncoder.h:13
int getSpeed()
Returns the last detected speed.
Definition TractionEncoder.cpp:39
void begin()
Sets the encoder's pins and attach the interrupt.
Definition TractionEncoder.cpp:23
int getSteps()
Returns the number of steps since the class was initialized.
Definition TractionEncoder.cpp:59