Auto Path
class AutoPath(inputFile: File, val swerveAuto: SwerveAuto, val gyro: GenericGyro, commandsList: HashMap<Int, CommandBase> = HashMap()) : CommandBase
A class that represents a path that the robot can follow. These paths are defined in JSON files and generated from the custom Cshcyberhawks pathplanner.
Parameters
input File
The file that contains the path.
swerve Auto
The SwerveAuto object that the robot is using.
gyro
The gyro that the robot is using.
commands List
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.
Constructors
Link copied to clipboard
constructor(inputFile: File, swerveAuto: SwerveAuto, gyro: GenericGyro, commandsList: HashMap<Int, CommandBase> = HashMap())
Creates a new AutoPath 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