4#include "RelativeEncoder.h"
6namespace RoboidControl {
22 enum Direction { Forward = 1, Reverse = -1 };
23 Direction rotationDirection;
25 virtual void Update(
bool recurse =
false)
override;
A motor with speed control It uses a feedback loop from an encoder to regulate the speed The speed is...
Definition ControlledMotor.h:11
virtual void SetTargetVelocity(float velocity) override
Set the target verlocity for the motor controller.
Definition ControlledMotor.cpp:17
float actualVelocity
The actual velocity in revolutions per second.
Definition ControlledMotor.h:20
virtual void Update(bool recurse=false) override
Updates the state of the thing.
Definition ControlledMotor.cpp:23
An Incremental Encoder measures the rotations of an axle using a rotary sensor. Some encoders are abl...
Definition RelativeEncoder.h:10
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