![]() |
Autodrone
Multi-Domain Vehicle
|
This files initializes and updates the PID controller. More...
Go to the source code of this file.
Data Structures | |
| struct | PIDdata |
Typedefs | |
| typedef struct PIDdata | PIDdata_t |
Functions | |
| void | initPID (void) |
| Initializes the PID states. More... | |
| float | updatePID (float error, float deltaT, uint8_t reset, struct PIDdata *PIDparameters) |
| Updates the PID states. More... | |
| void | initPIDvalues (void) |
| Allows the user to change the PID values. More... | |
| void | setPIDstates (uint8_t IDPid, float value) |
| Set the state of the PIDs. More... | |
| void | zeroPIDstates (void) |
| Set all states to 0. More... | |
Variables | |
| uint8_t | pidReset |
This files initializes and updates the PID controller.
| void initPID | ( | void | ) |
Initializes the PID states.
| void initPIDvalues | ( | void | ) |
Allows the user to change the PID values.
| void setPIDstates | ( | uint8_t | IDPid, |
| float | value | ||
| ) |
Set the state of the PIDs.
| IDPid | Which PID state you want to change. |
| value | The value to write. |
| float updatePID | ( | float | error, |
| float | deltaT, | ||
| uint8_t | reset, | ||
| struct PIDdata * | PIDparameters | ||
| ) |
Updates the PID states.
| error | Commanded changed minus measured change. |
| deltaT | Time between updates in sec. |
| reset | If the PID states should be reset. |
| *PIDparameters | Struct containing the parameters of the PID controller. |
| void zeroPIDstates | ( | void | ) |
Set all states to 0.
|
extern |