File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 7
7
from wpimath .trajectory import TrapezoidProfile
8
8
9
9
from .subsystem import Subsystem
10
- from .typing import TProfiledPIDController
10
+ from .typing import TProfiledPIDController , TTrapezoidProfileState
11
11
12
12
13
- class ProfiledPIDSubsystem (Subsystem , Generic [TProfiledPIDController ]):
13
+ class ProfiledPIDSubsystem (
14
+ Subsystem , Generic [TProfiledPIDController , TTrapezoidProfileState ]
15
+ ):
14
16
"""
15
17
A subsystem that uses a :class:`wpimath.controller.ProfiledPIDController`
16
18
or :class:`wpimath.controller.ProfiledPIDControllerRadians` to
@@ -49,7 +51,7 @@ def setGoal(self, goal):
49
51
"""
50
52
self ._controller .setGoal (goal )
51
53
52
- def useOutput (self , output : float , setpoint : TrapezoidProfile . State ):
54
+ def useOutput (self , output : float , setpoint : TTrapezoidProfileState ):
53
55
"""
54
56
Uses the output from the controller object.
55
57
"""
You can’t perform that action at this time.
0 commit comments