|
bitrl & cuberl Documentation
Simulation engine for reinforcement learning agents
|
PID controller implementation. More...
#include <pid_controller.h>
Public Types | |
| typedef real_t | ctrl_signal_type |
Public Member Functions | |
| PIDController (real_t Kp, real_t Ki, real_t Kd) | |
| real_t | get_kp () const noexcept |
| real_t | get_ki () const noexcept |
| real_t | get_kd () const noexcept |
| bool | is_limited () const noexcept |
| void | set_control_limits (std::pair< real_t, real_t > limits) |
| ctrl_signal_type | compute_ctrl_signal (real_t current, real_t target, real_t dt) |
PID controller implementation.
Constructor
| Kp | |
| Ki | |
| Kd |
| real_t bitrl::control::PIDController::compute_ctrl_signal | ( | real_t | current, |
| real_t | target, | ||
| real_t | dt | ||
| ) |
Compute the control signal to return
| current | |
| target | |
| dt |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
Test the is_limited_ flag
Set the min/max threshold for the action
| limits |