|
Sylib
A C++ Library For V5
|
TBH Controller. More...
#include <math.hpp>
Public Member Functions | |
| TakeBackHalfController (double kH, std::shared_ptr< double > error) | |
| Creates an Take Back Half controller for a V5 motor. More... | |
| double | update () |
| Calculates controller output based on the current error value. More... | |
| double | getOutput () const |
| Gets the current stored output value without calculating a new value. More... | |
| double | getkH () const |
| Gets the kH constant. More... | |
| double | getTBH () const |
| Gets the current stored TBH value. More... | |
| void | setkH (double gain) |
| Sets the kH constant. More... | |
| double | getCurrentTime () const |
| Gets the current time the controller is using. More... | |
| double | operator* () const |
| Operator overload for getting the current filter ouput. More... | |
TBH Controller.
| sylib::TakeBackHalfController::TakeBackHalfController | ( | double | kH, |
| std::shared_ptr< double > | error | ||
| ) |
Creates an Take Back Half controller for a V5 motor.
| kH | TBH gain |
| error | A pointer to a double containing the error value to use for calculations |
| double sylib::TakeBackHalfController::getCurrentTime | ( | ) | const |
Gets the current time the controller is using.
| double sylib::TakeBackHalfController::getkH | ( | ) | const |
Gets the kH constant.
| double sylib::TakeBackHalfController::getOutput | ( | ) | const |
Gets the current stored output value without calculating a new value.
| double sylib::TakeBackHalfController::getTBH | ( | ) | const |
Gets the current stored TBH value.
| double sylib::TakeBackHalfController::operator* | ( | ) | const |
Operator overload for getting the current filter ouput.
| void sylib::TakeBackHalfController::setkH | ( | double | gain | ) |
Sets the kH constant.
| gain | TBH gain |
| double sylib::TakeBackHalfController::update | ( | ) |
Calculates controller output based on the current error value.