PID Controller class for sensor fusion and motor controls when driving to and near an object.
More...
#include <pidController.h>
|
| | PIDController (float kp, float ki, float kd) |
| | Constructor Fucntion for PID Controller Class.
|
| void | reset () |
| | Resets Values of PID.
|
| void | setTunings (float kp, float ki, float kd) |
| | Function sets the tuning variables for the PID Controller.
|
| float | update (float error, float dt) |
| | Function updates the PID based on the new error values and adjusts.
|
PID Controller class for sensor fusion and motor controls when driving to and near an object.
◆ PIDController()
| PIDController::PIDController |
( |
float | kp, |
|
|
float | ki, |
|
|
float | kd ) |
Constructor Fucntion for PID Controller Class.
◆ reset()
| void PIDController::reset |
( |
| ) |
|
Resets Values of PID.
- Returns
- None
◆ setTunings()
| void PIDController::setTunings |
( |
float | kp, |
|
|
float | ki, |
|
|
float | kd ) |
Function sets the tuning variables for the PID Controller.
- Returns
- None
◆ update()
| float PIDController::update |
( |
float | error, |
|
|
float | dt ) |
Function updates the PID based on the new error values and adjusts.
- Returns
- None
◆ integral
| float PIDController::integral |
|
private |
◆ Kd
◆ Ki
◆ Kp
◆ prevError
| float PIDController::prevError |
|
private |
The documentation for this class was generated from the following files:
- C:/Users/arath/OneDrive/Documents/ME 507/Project-WALLE/Code/Inc/pidController.h
- C:/Users/arath/OneDrive/Documents/ME 507/Project-WALLE/Code/src/pidController.cpp