HoldVelocity

class HoldVelocity @JvmOverloads constructor(val controllable: Controllable, val controller: Controller, val subsystems: Set<Subsystem> = setOf()) : Command

This implements a PID controller to hold a motor at its current velocity. This command never finishes, so it should be implemented as a DefaultCommand in your subsystem.

Parameters

controllable

the Controllable to control

controller

the Controller to implement

subsystems

the list of Subsystems this command interacts with (should be whatever subsystem holds this command)

Constructors

Link copied to clipboard
constructor(controllable: Controllable, controller: Controller, subsystem: Subsystem)
constructor(controllable: Controllable, 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 = false
Link copied to clipboard
open override val subsystems: Set<Subsystem>

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