|
LightLib
PROS library for VEX V5: EKF/MCL localization, RAMSETE path following, high-level chassis API
|
A ControllerInput with a filter built in. More...
#include <filteredControllerInput.hpp>
Public Member Functions | |
| FilteredControllerInput (std::unique_ptr< ControllerInput< InputType > > iinput, std::unique_ptr< FilterType > ifilter) | |
| A filtered controller input. | |
| double | controllerGet () override |
| Gets the sensor value for use in a control loop. | |
Protected Attributes | |
| std::unique_ptr< ControllerInput< InputType > > | input |
| std::unique_ptr< FilterType > | filter |
A ControllerInput with a filter built in.
| InputType | the type of the ControllerInput |
| FilterType | the type of the Filter |
Definition at line 20 of file filteredControllerInput.hpp.
|
inline |
A filtered controller input.
Applies a filter to the controller input. Useful if you want to place a filter between a control input and a control loop.
| iinput | ControllerInput type |
| ifilter | Filter type |
Definition at line 29 of file filteredControllerInput.hpp.
|
inlineoverridevirtual |
Gets the sensor value for use in a control loop.
This method might be automatically called in another thread by the controller.
Implements okapi::ControllerInput< double >.
Definition at line 40 of file filteredControllerInput.hpp.
|
protected |
Definition at line 46 of file filteredControllerInput.hpp.
|
protected |
Definition at line 45 of file filteredControllerInput.hpp.