From be95dbeedc0bef3d3c82afed8ecc32d89b2800d1 Mon Sep 17 00:00:00 2001 From: Pascal Serrarens Date: Mon, 2 Jun 2025 12:39:47 +0200 Subject: [PATCH] Renamed thing type incremental to relative encoder --- Thing.h | 2 +- Things/RelativeEncoder.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Thing.h b/Thing.h index bce0053..cb63c4f 100644 --- a/Thing.h +++ b/Thing.h @@ -32,7 +32,7 @@ class Thing { static const unsigned char ControlledMotor = 0x06; static const unsigned char UncontrolledMotor = 0x07; static const unsigned char Servo = 0x08; - static const unsigned char IncrementalEncoder = 0x19; + static const unsigned char RelativeEncoder = 0x19; // Other static const unsigned char Root = 0x10; static const unsigned char Roboid = 0x09; diff --git a/Things/RelativeEncoder.cpp b/Things/RelativeEncoder.cpp index 573f84b..4fbef8c 100644 --- a/Things/RelativeEncoder.cpp +++ b/Things/RelativeEncoder.cpp @@ -3,7 +3,7 @@ namespace RoboidControl { RelativeEncoder::RelativeEncoder(Thing* parent) : Thing(parent) { - this->type = Type::IncrementalEncoder; + this->type = Type::RelativeEncoder; } float RelativeEncoder::GetRotationSpeed() {