6namespace RoboidControl {
35 void SetMotors(Motor& leftMotor, Motor& rightMotor);
45 virtual void Update(
bool recursive =
true)
override;
A thing which can move itself using a differential drive system.
Definition DifferentialDrive.h:11
float rpsToMs
Convert revolutions per second to meters per second.
Definition DifferentialDrive.h:62
int GenerateBinary(char *bytes, unsigned char *ix) override
Function used to generate binary data for this thing.
Definition DifferentialDrive.cpp:98
void SetMotors(Motor &leftMotor, Motor &rightMotor)
Congures the motors for the wheels.
Definition DifferentialDrive.cpp:51
float wheelRadius
The radius of a wheel in meters.
Definition DifferentialDrive.h:57
void SetWheelVelocity(float speedLeft, float speedRight)
Directly specify the speeds of the motors.
Definition DifferentialDrive.cpp:60
Motor * leftWheel
The left wheel.
Definition DifferentialDrive.h:51
float wheelSeparation
The distance between the wheels in meters.
Definition DifferentialDrive.h:59
void SetDriveDimensions(float wheelDiameter, float wheelSeparation)
Configures the dimensions of the drive.
Definition DifferentialDrive.cpp:28
Motor * rightWheel
The right wheel.
Definition DifferentialDrive.h:53
virtual void Update(bool recursive=true) override
Definition DifferentialDrive.cpp:74
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