|
embeddedlibrary
reusable software modules for embedded systems
|
Data Structures | |
| struct | pid_controller_t |
Typedefs | |
| typedef struct pid_controller_t | pid_controller_t |
| typedef struct pid_controller_t | pid_controller_t |
Functions | |
| void | PID_Reset (pid_controller_t *pid_handle) |
| int32_t | PID_Step (pid_controller_t *pid_handle, int32_t meas) |
| float | PID_Step (pid_controller_t *pid_handle, float meas) |
Created on: Mar 17, 2014
| typedef struct pid_controller_t pid_controller_t |
Structure to hold PID controller data
| typedef struct pid_controller_t pid_controller_t |
Structure to hold PID controller data
| void PID_Reset | ( | pid_controller_t * | pid_handle | ) |
Resets the error and previous timestep of the PID controller.
Sets the gain parameters, resets the error's and time
| pid_handle | - a handle to the PID structure to initialize |
| curr_time | - the current time for prev_time to be reset to |
| float PID_Step | ( | pid_controller_t * | pid_handle, |
| float | meas | ||
| ) |
Updates the PID controller and returns the computed output
| pid_handle | - a handle to the PID structure to update |
| stpt | - the setpoint of the system |
| meas | - the current measurement of the value |
| int32_t PID_Step | ( | pid_controller_t * | pid_handle, |
| int32_t | meas | ||
| ) |
Updates the PID controller and returns the computed output
| pid_handle | - a handle to the PID structure to update |
| stpt | - the setpoint of the system |
| meas | - the current measurement of the value |