We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 74a72fb commit f193901Copy full SHA for f193901
commands2/profiledpidsubsystem.py
@@ -2,10 +2,13 @@
2
# Open Source Software; you can modify and/or share it under the terms of
3
# the WPILib BSD license file in the root directory of this project.
4
5
+from typing import Union
6
+
7
from wpimath.controller import ProfiledPIDController
-from .subsystem import Subsystem
8
from wpimath.trajectory import TrapezoidProfile
9
10
+from .subsystem import Subsystem
11
12
13
class ProfiledPIDSubsystem(Subsystem):
14
"""
@@ -32,7 +35,7 @@ def getController(self) -> ProfiledPIDController:
32
35
"""Returns the ProfiledPIDController."""
33
36
return self._controller
34
37
- def setGoal(self, goal: TrapezoidProfile.State | float):
38
+ def setGoal(self, goal: Union[TrapezoidProfile.State, float]):
39
40
Sets the goal state for the subsystem.
41
0 commit comments