42#if defined(__cplusplus)
50#define a_pid_init(ctx) a_pid_zero(ctx)
94#if defined(__cplusplus)
98typedef struct a_pid pid;
119#if defined(__cplusplus)
double a_float
compiler built-in floating-point number type
Definition a.h:1003
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
#define a_pid_init(ctx)
initialize for PID controller
Definition pid.h:50
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
a_float a_pid_pos(a_pid *ctx, a_float set, a_float fdb)
calculate for positional PID controller
a_float a_pid_run(a_pid *ctx, a_float set, a_float fdb)
calculate for PID controller
instance structure for PID controller
Definition pid.h:106
a_float var
Definition pid.h:116
a_float kd
Definition pid.h:109
a_float kp
Definition pid.h:107
a_float ki
Definition pid.h:108
a_float fdb
Definition pid.h:117
a_float sum
Definition pid.h:112
a_float err
Definition pid.h:118
a_float summin
Definition pid.h:111
a_float out
Definition pid.h:115
a_float summax
Definition pid.h:110
a_float outmax
Definition pid.h:113
a_float outmin
Definition pid.h:114