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())

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val isDone: Boolean
Link copied to clipboard
open override val subsystems: Set<Subsystem>
Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
fun and(vararg commands: Command): ParallelGroup
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
operator fun invoke()
Link copied to clipboard
Link copied to clipboard
fun raceWith(vararg commands: Command): ParallelRaceGroup
Link copied to clipboard
open override fun start()
Link copied to clipboard
open override fun stop(interrupted: Boolean)
Link copied to clipboard
fun then(vararg commands: Command): SequentialGroup
Link copied to clipboard
Link copied to clipboard
open override fun update()
Link copied to clipboard