Renamed thing type incremental to relative encoder

This commit is contained in:
Pascal Serrarens 2025-06-02 12:39:47 +02:00
parent 57cf14b487
commit be95dbeedc
2 changed files with 2 additions and 2 deletions

View File

@ -32,7 +32,7 @@ class Thing {
static const unsigned char ControlledMotor = 0x06; static const unsigned char ControlledMotor = 0x06;
static const unsigned char UncontrolledMotor = 0x07; static const unsigned char UncontrolledMotor = 0x07;
static const unsigned char Servo = 0x08; static const unsigned char Servo = 0x08;
static const unsigned char IncrementalEncoder = 0x19; static const unsigned char RelativeEncoder = 0x19;
// Other // Other
static const unsigned char Root = 0x10; static const unsigned char Root = 0x10;
static const unsigned char Roboid = 0x09; static const unsigned char Roboid = 0x09;

View File

@ -3,7 +3,7 @@
namespace RoboidControl { namespace RoboidControl {
RelativeEncoder::RelativeEncoder(Thing* parent) : Thing(parent) { RelativeEncoder::RelativeEncoder(Thing* parent) : Thing(parent) {
this->type = Type::IncrementalEncoder; this->type = Type::RelativeEncoder;
} }
float RelativeEncoder::GetRotationSpeed() { float RelativeEncoder::GetRotationSpeed() {