AutoPath

constructor(inputFile: File, swerveAuto: SwerveAuto, gyro: GenericGyro, commandsList: HashMap<Int, CommandBase> = HashMap())

Creates a new AutoPath object.

Parameters

inputFile

The file that contains the path.

swerveAuto

The SwerveAuto object that the robot is using.

gyro

The gyro that the robot is using.

commandsList

A HashMap of commands that the robot can execute at certain points in the path. The key is the index of points at which the command should be executed. These attached commands will run concurrently with the robot point movement in a blocking way.