70 virtual void turnRaw(
double idegTarget) = 0;
135 virtual std::shared_ptr<ChassisModel>
getModel() = 0;
virtual ChassisModel & model()=0
virtual void waitUntilSettled()=0
Delays until the currently executing movement completes.
virtual ChassisScales getChassisScales() const =0
Get the ChassisScales.
virtual double getMaxVelocity() const =0
virtual void setTurnsMirrored(bool ishouldMirror)=0
Sets whether turns should be mirrored.
virtual void moveDistanceAsync(QLength itarget)=0
Sets the target distance for the robot to drive straight (using closed-loop control).
virtual void moveDistance(QLength itarget)=0
Drives the robot straight for a distance (using closed-loop control).
virtual void moveRaw(double itarget)=0
Drives the robot straight for a distance (using closed-loop control).
virtual void turnAngleAsync(QAngle idegTarget)=0
Sets the target angle for the robot to turn clockwise in place (using closed-loop control).
virtual ~ChassisController()=default
virtual std::shared_ptr< ChassisModel > getModel()=0
ChassisController()=default
A ChassisController adds a closed-loop layer on top of a ChassisModel.
virtual void setMaxVelocity(double imaxVelocity)=0
Sets a new maximum velocity in RPM [0-600].
virtual AbstractMotor::GearsetRatioPair getGearsetRatioPair() const =0
Get the GearsetRatioPair.
virtual void turnAngle(QAngle idegTarget)=0
Turns the robot clockwise in place (using closed-loop control).
virtual void stop()=0
Interrupts the current movement to stop the robot.
virtual void moveRawAsync(double itarget)=0
Sets the target distance for the robot to drive straight (using closed-loop control).
virtual void turnRaw(double idegTarget)=0
Turns the robot clockwise in place (using closed-loop control).
virtual bool isSettled()=0
Checks whether the internal controllers are currently settled.
virtual void turnRawAsync(double idegTarget)=0
Sets the target angle for the robot to turn clockwise in place (using closed-loop control).
A version of the ReadOnlyChassisModel that also supports write methods, such as setting motor speed.
A simple structure representing the full ratio between motor and wheel.