|
LightLib
PROS library for VEX V5: EKF/MCL localization, RAMSETE path following, high-level chassis API
|
#include <chassisController.hpp>
Public Member Functions | |
| ChassisController ()=default | |
| A ChassisController adds a closed-loop layer on top of a ChassisModel. | |
| virtual | ~ChassisController ()=default |
| 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 | moveDistanceAsync (QLength itarget)=0 |
| Sets the target distance for the robot to drive straight (using closed-loop control). | |
| virtual void | moveRawAsync (double itarget)=0 |
| Sets the target distance for the robot to drive straight (using closed-loop control). | |
| virtual void | turnAngle (QAngle idegTarget)=0 |
| Turns the robot clockwise in place (using closed-loop control). | |
| virtual void | turnRaw (double idegTarget)=0 |
| Turns the robot clockwise in place (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 void | turnRawAsync (double idegTarget)=0 |
| Sets the target angle for the robot to turn clockwise in place (using closed-loop control). | |
| virtual void | setTurnsMirrored (bool ishouldMirror)=0 |
| Sets whether turns should be mirrored. | |
| virtual bool | isSettled ()=0 |
| Checks whether the internal controllers are currently settled. | |
| virtual void | waitUntilSettled ()=0 |
| Delays until the currently executing movement completes. | |
| virtual void | stop ()=0 |
| Interrupts the current movement to stop the robot. | |
| virtual void | setMaxVelocity (double imaxVelocity)=0 |
| Sets a new maximum velocity in RPM [0-600]. | |
| virtual double | getMaxVelocity () const =0 |
| virtual ChassisScales | getChassisScales () const =0 |
| Get the ChassisScales. | |
| virtual AbstractMotor::GearsetRatioPair | getGearsetRatioPair () const =0 |
| Get the GearsetRatioPair. | |
| virtual std::shared_ptr< ChassisModel > | getModel ()=0 |
| virtual ChassisModel & | model ()=0 |
Definition at line 17 of file chassisController.hpp.
|
explicitdefault |
A ChassisController adds a closed-loop layer on top of a ChassisModel.
moveDistance and turnAngle both use closed-loop control to move the robot. There are passthrough functions for everything defined in ChassisModel.
| imodel | underlying ChassisModel |
|
virtualdefault |
|
pure virtual |
Get the ChassisScales.
Implemented in okapi::ChassisControllerIntegrated, okapi::ChassisControllerPID, and okapi::DefaultOdomChassisController.
|
pure virtual |
Get the GearsetRatioPair.
Implemented in okapi::ChassisControllerIntegrated, okapi::ChassisControllerPID, and okapi::DefaultOdomChassisController.
|
pure virtual |
Implemented in okapi::ChassisControllerIntegrated, okapi::ChassisControllerPID, and okapi::DefaultOdomChassisController.
|
pure virtual |
Implemented in okapi::ChassisControllerIntegrated, okapi::ChassisControllerPID, and okapi::DefaultOdomChassisController.
|
pure virtual |
Checks whether the internal controllers are currently settled.
Implemented in okapi::ChassisControllerIntegrated, okapi::ChassisControllerPID, and okapi::DefaultOdomChassisController.
|
pure virtual |
Implemented in okapi::ChassisControllerIntegrated, okapi::ChassisControllerPID, and okapi::DefaultOdomChassisController.
|
pure virtual |
Drives the robot straight for a distance (using closed-loop control).
| itarget | distance to travel |
Implemented in okapi::ChassisControllerIntegrated, okapi::ChassisControllerPID, and okapi::DefaultOdomChassisController.
|
pure virtual |
Sets the target distance for the robot to drive straight (using closed-loop control).
| itarget | distance to travel |
Implemented in okapi::ChassisControllerIntegrated, okapi::ChassisControllerPID, and okapi::DefaultOdomChassisController.
|
pure virtual |
Drives the robot straight for a distance (using closed-loop control).
| itarget | distance to travel in motor degrees |
Implemented in okapi::ChassisControllerIntegrated, okapi::ChassisControllerPID, and okapi::DefaultOdomChassisController.
|
pure virtual |
Sets the target distance for the robot to drive straight (using closed-loop control).
| itarget | distance to travel in motor degrees |
Implemented in okapi::ChassisControllerIntegrated, okapi::ChassisControllerPID, and okapi::DefaultOdomChassisController.
|
pure virtual |
Sets a new maximum velocity in RPM [0-600].
| imaxVelocity | The new maximum velocity. |
Implemented in okapi::ChassisControllerIntegrated, okapi::ChassisControllerPID, and okapi::DefaultOdomChassisController.
|
pure virtual |
Sets whether turns should be mirrored.
| ishouldMirror | whether turns should be mirrored |
Implemented in okapi::ChassisControllerIntegrated, okapi::ChassisControllerPID, and okapi::DefaultOdomChassisController.
|
pure virtual |
Interrupts the current movement to stop the robot.
Implemented in okapi::ChassisControllerIntegrated, okapi::ChassisControllerPID, and okapi::DefaultOdomChassisController.
|
pure virtual |
Turns the robot clockwise in place (using closed-loop control).
| idegTarget | angle to turn for |
Implemented in okapi::ChassisControllerIntegrated, okapi::ChassisControllerPID, and okapi::DefaultOdomChassisController.
|
pure virtual |
Sets the target angle for the robot to turn clockwise in place (using closed-loop control).
| idegTarget | angle to turn for |
Implemented in okapi::ChassisControllerIntegrated, okapi::ChassisControllerPID, and okapi::DefaultOdomChassisController.
|
pure virtual |
Turns the robot clockwise in place (using closed-loop control).
| idegTarget | angle to turn for in motor degrees |
Implemented in okapi::ChassisControllerIntegrated, okapi::ChassisControllerPID, and okapi::DefaultOdomChassisController.
|
pure virtual |
Sets the target angle for the robot to turn clockwise in place (using closed-loop control).
| idegTarget | angle to turn for in motor degrees |
Implemented in okapi::ChassisControllerIntegrated, okapi::ChassisControllerPID, and okapi::DefaultOdomChassisController.
|
pure virtual |
Delays until the currently executing movement completes.
Implemented in okapi::ChassisControllerIntegrated, okapi::ChassisControllerPID, and okapi::DefaultOdomChassisController.