#include <pid_controller.h>
Definition at line 35 of file pid_controller.h.
◆ 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)
Definition at line 104 of file pid_controller.h.
◆ last_control_value()
double grpc_core::PidController::last_control_value |
( |
| ) |
const |
|
inline |
◆ Reset()
void grpc_core::PidController::Reset |
( |
| ) |
|
|
inline |
Reset the controller internal state: useful when the environment has changed significantly
Definition at line 90 of file pid_controller.h.
◆ 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
Definition at line 30 of file pid_controller.cc.
◆ args_
◆ error_integral_
double grpc_core::PidController::error_integral_ = 0.0 |
|
private |
◆ last_control_value_
double grpc_core::PidController::last_control_value_ |
|
private |
◆ last_dc_dt_
double grpc_core::PidController::last_dc_dt_ = 0.0 |
|
private |
◆ last_error_
double grpc_core::PidController::last_error_ = 0.0 |
|
private |
The documentation for this class was generated from the following files: