Go To Position And Execute
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
swerve Auto
The SwerveAuto object that the robot is using.
desired Position
The position that the robot should move to.
command
The command that should be executed at the same time as the robot movement.
finish Condition
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
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard