BeRTOS
|
Proportional, integral, derivative controller (PID controller). More...
#include <drv/timer.h>
Go to the source code of this file.
Data Structures | |
struct | PidCfg |
PID context structure. More... | |
struct | PidContext |
PID context structure. More... | |
Typedefs | |
typedef float | pidk_t |
Data type for pid coefficient. | |
Functions | |
void | pid_control_setPid (PidCfg *pid_cfg, pidk_t kp, pidk_t ki, pidk_t kd) |
Set Kp, Ki, Kd constants of PID control. | |
void | pid_control_setPeriod (PidCfg *pid_cfg, mtime_t sample_period) |
Set sample period for PID control. | |
void | pid_control_reset (PidContext *pid_ctx) |
Clear a pid control structure. | |
piddata_t | pid_control_update (PidContext *pid_ctx, piddata_t target, piddata_t curr_pos) |
Compute next value for reaching target point. | |
void | pid_control_init (PidContext *pid_ctx, const PidCfg *pid_cfg) |
Init PID control. |
Proportional, integral, derivative controller (PID controller).
Definition in file pid_control.h.