|
LightLib
PROS library for VEX V5: EKF/MCL localization, RAMSETE path following, high-level chassis API
|
#include <controllerRunner.hpp>
Public Member Functions | |
| ControllerRunner (const TimeUtil &itimeUtil, const std::shared_ptr< Logger > &ilogger=Logger::getDefaultLogger()) | |
| A utility class that runs a closed-loop controller. | |
| virtual Output | runUntilSettled (const Input itarget, AsyncController< Input, Output > &icontroller) |
| Runs the controller until it has settled. | |
| virtual Output | runUntilSettled (const Input itarget, IterativeController< Input, Output > &icontroller, ControllerOutput< Output > &ioutput) |
| Runs the controller until it has settled. | |
| virtual Output | runUntilAtTarget (const Input itarget, AsyncController< Input, Output > &icontroller) |
| Runs the controller until it has reached its target, but not necessarily settled. | |
| virtual Output | runUntilAtTarget (const Input itarget, IterativeController< Input, Output > &icontroller, ControllerOutput< Output > &ioutput) |
| Runs the controller until it has reached its target, but not necessarily settled. | |
Protected Attributes | |
| std::shared_ptr< Logger > | logger |
| std::unique_ptr< AbstractRate > | rate |
Definition at line 17 of file controllerRunner.hpp.
|
inlineexplicit |
A utility class that runs a closed-loop controller.
| itimeUtil | The TimeUtil. |
| ilogger | The logger this instance will log to. |
Definition at line 25 of file controllerRunner.hpp.
|
inlinevirtual |
Runs the controller until it has reached its target, but not necessarily settled.
| itarget | the new target |
| icontroller | the controller to run |
Definition at line 81 of file controllerRunner.hpp.
|
inlinevirtual |
Runs the controller until it has reached its target, but not necessarily settled.
| itarget | the new target |
| icontroller | the controller to run |
| ioutput | the output to write to |
Definition at line 107 of file controllerRunner.hpp.
|
inlinevirtual |
Runs the controller until it has settled.
| itarget | the new target |
| icontroller | the controller to run |
Definition at line 37 of file controllerRunner.hpp.
|
inlinevirtual |
Runs the controller until it has settled.
| itarget | the new target |
| icontroller | the controller to run |
| ioutput | the output to write to |
Definition at line 58 of file controllerRunner.hpp.
|
protected |
Definition at line 128 of file controllerRunner.hpp.
|
protected |
Definition at line 129 of file controllerRunner.hpp.