interface for control loop used by JMotorControllerClosed
More...
#include <JControlLoop.h>
|
virtual float | calc (JMotorControllerClosed *controller)=0 |
|
virtual void | resetTime ()=0 |
|
float | getError () |
| setpoint-position
|
|
float | getCtrlLoopOut () |
| most recent value calculated by control loop in response to error (but not including feedforward) For example, if the control loop is a proportional loop, this function returns P * error
|
|
float | getResult () |
| most recent value returned by calc() overall output to motor
|
|
interface for control loop used by JMotorControllerClosed
◆ calc()
◆ getCtrlLoopOut()
float JControlLoop::getCtrlLoopOut |
( |
| ) |
|
|
inline |
most recent value calculated by control loop in response to error (but not including feedforward) For example, if the control loop is a proportional loop, this function returns P * error
- Return values
-
◆ getError()
float JControlLoop::getError |
( |
| ) |
|
|
inline |
setpoint-position
- Return values
-
◆ getResult()
float JControlLoop::getResult |
( |
| ) |
|
|
inline |
most recent value returned by calc() overall output to motor
- Return values
-
◆ resetTime()
virtual void JControlLoop::resetTime |
( |
| ) |
|
|
pure virtual |
◆ ctrlLoopOut
float JControlLoop::ctrlLoopOut |
|
protected |
◆ error
float JControlLoop::error |
|
protected |
◆ result
float JControlLoop::result |
|
protected |
The documentation for this class was generated from the following file: