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)
#define a_float
Definition a.h:785
double a_pid_pos(a_pid *ctx, double set, double fdb)
calculate for positional PID controller
#define a_pid_init(ctx)
initialize for PID controller
Definition pid.h:50
double a_pid_run(a_pid *ctx, double set, double fdb)
calculate for PID controller
void a_pid_set_kpid(a_pid *ctx, double kp, double ki, double kd)
set proportional integral derivative constant for PID controller
void a_pid_zero(a_pid *ctx)
zeroing for PID controller
double a_pid_inc(a_pid *ctx, double set, double fdb)
calculate for incremental PID controller
instance structure for PID controller
Definition pid.h:106
double sum
controller integral output
Definition pid.h:112
double kp
proportional constant
Definition pid.h:107
double err
cache error
Definition pid.h:118
double outmax
maximum final output
Definition pid.h:113
double summin
minimum integral output
Definition pid.h:111
double ki
integral constant
Definition pid.h:108
double out
controller final output
Definition pid.h:115
double fdb
cache feedback
Definition pid.h:117
double outmin
minimum final output
Definition pid.h:114
double var
cache variable
Definition pid.h:116
double kd
derivative constant
Definition pid.h:109
double summax
maximum integral output
Definition pid.h:110