|
Smart Knob Controller
|
Simple PID controller class for embedded control loops. More...
#include <PID.h>
Public Member Functions | |
| PID (float kp, float ki, float kd, TIM_HandleTypeDef *htim) | |
| Constructs a PID controller with specified gains. | |
| float | update (float error) |
| Updates the PID output based on the current error. | |
| void | reset () |
| Resets the integral and previous error states. | |
Simple PID controller class for embedded control loops.
| PID::PID | ( | float | kp, |
| float | ki, | ||
| float | kd, | ||
| TIM_HandleTypeDef * | htim ) |
Constructs a PID controller with specified gains.
| kp | Proportional gain. |
| ki | Integral gain. |
| kd | Derivative gain. |
| htim | Pointer to hardware timer for timekeeping. |
| float PID::update | ( | float | error | ) |