From b589b2279fa5a816ecb481b814a5f3b595e0bd3a Mon Sep 17 00:00:00 2001 From: TTVMixmix00 <68516760+TTVMixmix00@users.noreply.github.com> Date: Tue, 18 Jul 2023 06:58:20 -0700 Subject: [PATCH] Made it so it changes the state whenever you input a new setpoint --- .../controllers/CanSparkMaxSmartMotionPIDController.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/com/team766/controllers/CanSparkMaxSmartMotionPIDController.java b/src/main/java/com/team766/controllers/CanSparkMaxSmartMotionPIDController.java index ce741286..776041c8 100644 --- a/src/main/java/com/team766/controllers/CanSparkMaxSmartMotionPIDController.java +++ b/src/main/java/com/team766/controllers/CanSparkMaxSmartMotionPIDController.java @@ -170,6 +170,8 @@ public void setSetpoint(double position){ } setPointPosition = position; + + theState = PIDSTATE.PID; } public void stop(){