RunToPosition
class RunToPosition @JvmOverloads constructor(val controllable: Controllable, val target: Double, val controller: Controller, val subsystems: Set<Subsystem> = setOf()) : Command
This implements a Controller to drive a Controllable to a specified target position. When it finishes, it will set the Controllable's power to 0. To have it hold position, set the default command to a HoldPosition command.
Constructors
Link copied to clipboard
constructor(controllable: Controllable, target: Double, controller: Controller, subsystem: Subsystem)
constructor(controllable: Controllable, target: Double, controller: Controller, subsystems: Set<Subsystem> = setOf())