Skip to content

Commit d39f755

Browse files
Update constants.py
Oops, changed the wrong PID controller.
1 parent b07f20b commit d39f755

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/maxswerve/constants.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,6 @@ class AutoConstants:
141141
kPXController = PIDController(1.0, 0.0, 0.0)
142142
kPYController = PIDController(1.0, 0.0, 0.0)
143143
kPThetaController = ProfiledPIDControllerRadians(1.0, 0.0, 0.0, kThetaControllerConstraints)
144-
144+
kPThetaController.enableContinuousInput(-math.pi, math.pi)
145+
145146
kPIDController = HolonomicDriveController(kPXController, kPYController, kPThetaController)
146-
kPIDController.enableContinuousInput(-math.pi, math.pi)

0 commit comments

Comments
 (0)