Go To Position And Execute
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
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.