SetPower

class SetPower @JvmOverloads constructor(val controllable: Controllable, val power: Double, val subsystems: Set<Subsystem> = setOf()) : Command

Sets a controllable to a specific power without any internal feedback

Parameters

controllable

the Controllable to control

power

the power to set the Controllable to

subsystems

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

Constructors

Link copied to clipboard
constructor(controllable: Controllable, power: Double, subsystem: Subsystem)
constructor(controllable: Controllable, power: Double, subsystems: Set<Subsystem> = setOf())

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val isDone: Boolean = true
Link copied to clipboard
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 fun update()
Link copied to clipboard