4 #include "ControlStrategy.h" 17 PID(
float kP,
float kI,
float kD):
26 int32_t calculateControl(int32_t diff)
28 uint32_t now = micros();
29 uint32_t timeDelta = now - prevMicros;
34 integral = integral + diff * timeDelta;
36 return diff *kP + integral * kI;
Definition: ControlStrategy.h:4