QuickPivotCommand

class QuickPivotCommand(target: Double, auto: Boolean, autoAim: Boolean) : Command

Command to pivot the arm to a specific angle

Parameters

target

the target angle to pivot to

auto

does absolutely nothing

autoAim

whether the angle should be calculated based on the limelight

Constructors

Link copied to clipboard
constructor(target: Double, auto: Boolean, autoAim: Boolean)

Functions

Link copied to clipboard
open override fun end(interrupted: Boolean)

Hold the pivot in place when the command is interrupted or canceled

Link copied to clipboard
open override fun execute()

Set the pivot to move up or down based on the direction

Link copied to clipboard
open override fun initialize()

Calculate the angle to pivot to based on the distance from the limelight Determine the direction to pivot

Link copied to clipboard
open override fun isFinished(): Boolean

Finish the command when the pivot reaches the target angle Or moves past the target angle using the direction from the initialize method