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, a_float kp, a_float ki, a_float kd) |
set proportional integral derivative constant for PID controller | |
a_float | a_pid_run (a_pid *ctx, a_float set, a_float fdb) |
calculate for PID controller | |
a_float | a_pid_pos (a_pid *ctx, a_float set, a_float fdb) |
calculate for positional PID controller | |
a_float | a_pid_inc (a_pid *ctx, a_float set, a_float 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 |
calculate for incremental PID controller
[in,out] | ctx | points to an instance of PID controller |
[in] | set | setpoint value |
[in] | fdb | feedback value |
calculate for positional PID controller
[in,out] | ctx | points to an instance of PID controller |
[in] | set | setpoint value |
[in] | fdb | feedback value |
calculate for PID controller
[in,out] | ctx | points to an instance of PID controller |
[in] | set | setpoint value |
[in] | fdb | feedback value |
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 |