![]() |
BotNavSim
v0.4.3
Mobile Robot Simulation
|
Pid encapsulates PID control for floating point variables. More...
Public Member Functions | |
| float | output (float target, float actual) |
| Pid control from actual to target. Uses Time.fixedDeltaTime for delta time values More... | |
| void | Reset () |
| Set error, previous_error, integral and derivative to 0. More... | |
| void | CopySettings (Pid pid) |
| Copies the gain values from param to this instance More... | |
Public Attributes | |
| float | kp |
Properties | |
| float | error [get, private set] |
| float | previous_error [get, private set] |
| float | integral [get, private set] |
| float | derivative [get, private set] |
Private Attributes | |
| float | ki |
| float | kd |
| void Pid.CopySettings | ( | Pid | pid | ) |
Copies the gain values from param to this instance
| pid | Pid controller to copy gain values from. |
| float Pid.output | ( | float | target, |
| float | actual | ||
| ) |
| void Pid.Reset | ( | ) |