Roboid Control for C++ 0.4
Loading...
Searching...
No Matches
RelativeEncoder.h
1#pragma once
2
3#include "Thing.h"
4
5namespace RoboidControl {
6
10class RelativeEncoder : public Thing {
11 public:
17 //RelativeEncoder(Participant* owner);
18 // RelativeEncoder(Thing* parent);
20
23 virtual float GetRotationSpeed();
24 float rotationSpeed = 0;
25
29 int GenerateBinary(char* bytes, unsigned char* ix) override;
32 virtual void ProcessBinary(char* bytes) override;
33
34protected:
36 //float _rotationSpeed;
37};
38
39} // namespace RoboidControl
An Incremental Encoder measures the rotations of an axle using a rotary sensor. Some encoders are abl...
Definition RelativeEncoder.h:10
int GenerateBinary(char *bytes, unsigned char *ix) override
Function used to generate binary data for this touch sensor.
Definition RelativeEncoder.cpp:13
virtual float GetRotationSpeed()
Get the rotation speed.
Definition RelativeEncoder.cpp:9
virtual void ProcessBinary(char *bytes) override
Function used to process binary data received for this touch sensor.
Definition RelativeEncoder.cpp:18
A thing is the primitive building block.
Definition Thing.h:20
static Thing * LocalRoot()
The root thing for the local participant.
Definition Thing.cpp:23