#include <pid_controller.h>
|
| PidController (const Args &args) |
|
void | Reset () |
| Reset the controller internal state: useful when the environment has changed significantly. More...
|
|
double | Update (double error, double dt) |
| Update the controller: given a current error estimate, and the time since the last update, returns a new control value. More...
|
|
double | last_control_value () const |
| Returns the last control value calculated. More...
|
|
double | error_integral () const |
| Returns the current error integral (mostly for testing) More...
|
|
◆ PidController()
grpc_core::PidController::PidController |
( |
const Args & |
args | ) |
|
|
explicit |
◆ error_integral()
double grpc_core::PidController::error_integral |
( |
| ) |
const |
|
inline |
Returns the current error integral (mostly for testing)
◆ last_control_value()
double grpc_core::PidController::last_control_value |
( |
| ) |
const |
|
inline |
Returns the last control value calculated.
◆ Reset()
void grpc_core::PidController::Reset |
( |
| ) |
|
|
inline |
Reset the controller internal state: useful when the environment has changed significantly.
◆ Update()
double grpc_core::PidController::Update |
( |
double |
error, |
|
|
double |
dt |
|
) |
| |
Update the controller: given a current error estimate, and the time since the last update, returns a new control value.
The documentation for this class was generated from the following files: