27 lines
488 B
C++
27 lines
488 B
C++
#include "Encoder.h"
|
|
|
|
Encoder::Encoder() {
|
|
transitionsPerRotation = 1; // to prevent devide by zero
|
|
}
|
|
|
|
Encoder::Encoder(unsigned char transitionsPerRotation)
|
|
: Encoder::Encoder() {
|
|
this->transitionsPerRotation = transitionsPerRotation;
|
|
}
|
|
|
|
int Encoder::GetPulseCount() {
|
|
return 0;
|
|
}
|
|
|
|
float Encoder::GetPulsesPerSecond(float currentTimeMs) {
|
|
return 0;
|
|
}
|
|
|
|
float Encoder::GetDistance() {
|
|
return 0;
|
|
}
|
|
|
|
float Encoder::GetRevolutionsPerSecond(float currentTimeMs) {
|
|
return 0;
|
|
}
|