File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 2
2
# Open Source Software; you can modify and/or share it under the terms of
3
3
# the WPILib BSD license file in the root directory of this project.
4
4
5
+ from typing import Union
6
+
5
7
from wpimath .controller import ProfiledPIDController
6
- from .subsystem import Subsystem
7
8
from wpimath .trajectory import TrapezoidProfile
8
9
10
+ from .subsystem import Subsystem
11
+
9
12
10
13
class ProfiledPIDSubsystem (Subsystem ):
11
14
"""
@@ -32,7 +35,7 @@ def getController(self) -> ProfiledPIDController:
32
35
"""Returns the ProfiledPIDController."""
33
36
return self ._controller
34
37
35
- def setGoal (self , goal : TrapezoidProfile .State | float ):
38
+ def setGoal (self , goal : Union [ TrapezoidProfile .State , float ] ):
36
39
"""
37
40
Sets the goal state for the subsystem.
38
41
"""
You can’t perform that action at this time.
0 commit comments