ProfiledPIDSubsystem
- class commands2.ProfiledPIDSubsystem(*arg, **kwargs)[source]
Bases:
Subsystem,Generic[TProfiledPIDController,TTrapezoidProfileState]A subsystem that uses a
wpimath.controller.ProfiledPIDControllerorwpimath.controller.ProfiledPIDControllerRadiansto control an output. The controller is run synchronously from the subsystem’speriodic()method.Creates a new Profiled PID Subsystem using the provided PID Controller
- Parameters:
controller – the controller that controls the output
initial_position – the initial value of the process variable