GoToPositionAndExecute

class GoToPositionAndExecute(val swerveAuto: SwerveAuto, desiredPosition: FieldPosition, val command: CommandBase, finishCondition: FinishCondition = FinishCondition.BOTH) : CommandBase

A command that moves the robot to a certain position and executes a command at the same time.

Parameters

swerveAuto

The SwerveAuto object that the robot is using.

desiredPosition

The position that the robot should move to.

command

The command that should be executed at the same time as the robot movement.

finishCondition

The condition that should be met for the command to finish.

Constructors

Link copied to clipboard
constructor(swerveAuto: SwerveAuto, pos: Vector2, command: CommandBase, finishCondition: FinishCondition)
constructor(swerveAuto: SwerveAuto, desiredPosition: FieldPosition, command: CommandBase, finishCondition: FinishCondition = FinishCondition.BOTH)

Creates a new GoToPositionAndExecute object.

Functions

Link copied to clipboard
fun addRequirements(vararg p0: Subsystem)
Link copied to clipboard
open fun alongWith(vararg p0: Command): ParallelCommandGroup
Link copied to clipboard
open fun andThen(vararg p0: Command): SequentialCommandGroup
open fun andThen(p0: Runnable, vararg p1: Subsystem): SequentialCommandGroup
Link copied to clipboard
open fun asProxy(): ProxyCommand
Link copied to clipboard
open fun beforeStarting(p0: Command): SequentialCommandGroup
open fun beforeStarting(p0: Runnable, vararg p1: Subsystem): SequentialCommandGroup
Link copied to clipboard
open fun cancel()
Link copied to clipboard
open fun deadlineWith(vararg p0: Command): ParallelDeadlineGroup
Link copied to clipboard
open override fun end(interrupted: Boolean)
Link copied to clipboard
open override fun execute()
Link copied to clipboard
open fun finallyDo(p0: BooleanConsumer): WrapperCommand
Link copied to clipboard
open fun getInterruptionBehavior(): Command.InterruptionBehavior
Link copied to clipboard
open override fun getName(): String
Link copied to clipboard
open override fun getRequirements(): MutableSet<Subsystem>
Link copied to clipboard
open fun getSubsystem(): String
Link copied to clipboard
open fun handleInterrupt(p0: Runnable): WrapperCommand
Link copied to clipboard
open fun hasRequirement(p0: Subsystem): Boolean
Link copied to clipboard
open fun ignoringDisable(p0: Boolean): WrapperCommand
Link copied to clipboard
open override fun initialize()
Link copied to clipboard
open override fun initSendable(p0: SendableBuilder)
Link copied to clipboard
open override fun isFinished(): Boolean
Link copied to clipboard
open fun isScheduled(): Boolean
Link copied to clipboard
open fun perpetually(): PerpetualCommand
Link copied to clipboard
open fun raceWith(vararg p0: Command): ParallelRaceGroup
Link copied to clipboard
open fun repeatedly(): RepeatCommand
Link copied to clipboard
Link copied to clipboard
open fun schedule()
Link copied to clipboard
open override fun setName(p0: String)
Link copied to clipboard
open fun setSubsystem(p0: String)
Link copied to clipboard
open fun unless(p0: BooleanSupplier): ConditionalCommand
Link copied to clipboard
open fun until(p0: BooleanSupplier): ParallelRaceGroup
Link copied to clipboard
open fun withInterrupt(p0: BooleanSupplier): ParallelRaceGroup
Link copied to clipboard
open fun withInterruptBehavior(p0: Command.InterruptionBehavior): WrapperCommand
Link copied to clipboard
open fun withName(p0: String): WrapperCommand
Link copied to clipboard
open fun withTimeout(p0: Double): ParallelRaceGroup

Properties

Link copied to clipboard
val command: CommandBase
Link copied to clipboard