add back in Kd

This commit is contained in:
Vincent van der Wal
2026-06-10 20:34:59 +02:00
parent 5422ef1154
commit 8802f631e5
6 changed files with 262 additions and 55 deletions
+1 -1
View File
@@ -4,7 +4,7 @@
class PIDController
{
private:
double kp, ki, kd, setpoint, integral, prev_error;
double kp, ki, kd, setpoint, integral, prev_measurement, d_filtered;
double max_output, min_output, integral_max, dt;
bool first_run;