From 381dad63f93c9ba1e42a4deed03290b1c823cd87 Mon Sep 17 00:00:00 2001 From: clplaneguy Date: Fri, 5 Apr 2019 09:56:10 -0500 Subject: [PATCH] MakeblockPID --- PID_v1.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PID_v1.cpp b/PID_v1.cpp index 744b896..0008253 100644 --- a/PID_v1.cpp +++ b/PID_v1.cpp @@ -204,7 +204,7 @@ void PID2::SetControllerDirection(int Direction) { if(inAuto && Direction !=controllerDirection) { - kp = (0 - kp); + kp = (0 - kp); ki = (0 - ki); kd = (0 - kd); }