RoboidControl
Loading...
Searching...
No Matches
d:/PlatformIO/RoboidControl/Encoder.h
Go to the documentation of this file.
1#pragma once
2
4
5namespace Passer {
6namespace RoboidControl {
7
8// Deprecated, use explicit IncrementalEncoder in the future
10
11/*
14class IncrementalEncoder {
15public:
21 IncrementalEncoder(unsigned char pulsesPerRevolution = 1,
22 unsigned char distancePerRevolution = 1);
23
26 virtual int GetPulseCount();
30 virtual float GetPulsesPerSecond(float currentTimeMs);
31
34 virtual float GetDistance();
35
39 virtual float GetRevolutionsPerSecond(float currentTimeMs);
40
46 virtual float GetSpeed(float currentTimeMs);
47
49 unsigned char pulsesPerRevolution = 1;
52 unsigned char distancePerRevolution = 1;
53};
54*/
55} // namespace RoboidControl
56} // namespace Passer
57using namespace Passer::RoboidControl;
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