ServoToPosition

class ServoToPosition(val servo: Servo, val targetPosition: Double, val subsystems: Set<Subsystem>) : Command

This command moves a servo to a target position

Parameters

servo

the servo to move

targetPosition

the position to move the servo to

subsystems

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

Constructors

Link copied to clipboard
constructor(servo: Servo, targetPosition: Double, subsystem: Subsystem)
constructor(servo: Servo, targetPosition: Double, subsystems: Set<Subsystem>)

Properties

Link copied to clipboard
Link copied to clipboard
open override val isDone: Boolean
Link copied to clipboard
val servo: Servo
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 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