Renamed thing type incremental to relative encoder
This commit is contained in:
parent
57cf14b487
commit
be95dbeedc
2
Thing.h
2
Thing.h
@ -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;
|
||||||
|
@ -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() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user