liba 0.1.15
An algorithm library based on C/C++
|
Data Structures | |
struct | a_pid |
instance structure for PID controller More... | |
Macros | |
#define | a_pid_init(ctx) |
initialize for PID controller | |
Typedefs | |
typedef struct a_pid | a_pid |
Functions | |
void | a_pid_set_kpid (a_pid *ctx, double kp, double ki, double kd) |
set proportional integral derivative constant for PID controller | |
double | a_pid_run (a_pid *ctx, double set, double fdb) |
calculate for PID controller | |
double | a_pid_pos (a_pid *ctx, double set, double fdb) |
calculate for positional PID controller | |
double | a_pid_inc (a_pid *ctx, double set, double fdb) |
calculate for incremental PID controller | |
void | a_pid_zero (a_pid *ctx) |
zeroing for PID controller | |
#define a_pid_init | ( | ctx | ) |
initialize for PID controller
[in,out] | ctx | points to an instance of PID controller |
double a_pid_inc | ( | a_pid * | ctx, |
double | set, | ||
double | fdb ) |
calculate for incremental PID controller
[in,out] | ctx | points to an instance of PID controller |
[in] | set | setpoint value |
[in] | fdb | feedback value |
double a_pid_pos | ( | a_pid * | ctx, |
double | set, | ||
double | fdb ) |
calculate for positional PID controller
[in,out] | ctx | points to an instance of PID controller |
[in] | set | setpoint value |
[in] | fdb | feedback value |
double a_pid_run | ( | a_pid * | ctx, |
double | set, | ||
double | fdb ) |
calculate for PID controller
[in,out] | ctx | points to an instance of PID controller |
[in] | set | setpoint value |
[in] | fdb | feedback value |
void a_pid_set_kpid | ( | a_pid * | ctx, |
double | kp, | ||
double | ki, | ||
double | kd ) |
set proportional integral derivative constant for PID controller
[in,out] | ctx | points to an instance of PID controller |
[in] | kp | proportional constant |
[in] | ki | integral constant |
[in] | kd | derivative constant |
void a_pid_zero | ( | a_pid * | ctx | ) |
zeroing for PID controller
[in,out] | ctx | points to an instance of PID controller |