MultipleMotorsToPosition
class MultipleMotorsToPosition(val motorsAndControllers: Map<DcMotorEx, PIDFController>, val target: Double, val subsystems: Set<Subsystem>) : Command
Deprecated
Removed in favor of controllables
Replace with
RunToPosition
Content copied to clipboard
This implements a PID controller to drive multiple motors to a specified target position.
Parameters
motorsAndControllers
a map of all motors and their corresponding controllers
target
the target position
subsystems
the list of subsystems this command interacts with (should be whatever subsystem holds this command)
Constructors
Link copied to clipboard
constructor(motorsAndControllers: Map<DcMotorEx, PIDFController>, target: Double, subsystem: Subsystem)
constructor(motorsAndControllers: Map<DcMotorEx, PIDFController>, target: Double, subsystems: Set<Subsystem>)