#include <pid.h>
Data Fields | |
float | kp |
Proportional constant. | |
float | ki |
Integral constant. | |
float | kd |
Derivative constant. | |
float(* | input )() |
Input function. | |
void(* | output )(float value) |
Output drive function. | |
float | goal |
PID target. | |
float | sum |
Integration summation. | |
uint8_t | has_past |
If false, last_val/time are undefined. | |
float | last_val |
previous value for D | |
uint32_t | last_time |
previous reading time | |
uint8_t | enabled |
whether the PID is currently running |