GoToPositionAndExecute

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.

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.