61 const float measured,
float min_bound,
float max_bound,
float aw_bound);
float pid_apply_setpoint_antiwindup(struct pid *pid, struct pid_deadband *deadband, const float setpoint, const float measured, float min_bound, float max_bound, float aw_bound)
void pid_configure(struct pid *pid, float p, float i, float d, float iLim, float dT)
void pid_configure_deadband(struct pid_deadband *deadband, float width, float slope)
void pid_zero(struct pid *pid)
float pid_apply(struct pid *pid, const float err)
Methods to use the pid structures.
float integrated_response
float pid_apply_setpoint(struct pid *pid, struct pid_deadband *deadband, const float setpoint, const float measured)
float pid_apply_antiwindup(struct pid *pid, const float err, float min_bound, float max_bound, float aw_bound)
void pid_configure_derivative(float cutoff, float g)
Configure the common terms that alter ther derivative.