We currently use the AutoMode wrapper class to store data about our Choreo auto, including:
- the name of the auto mode
- the trajectory that the robot will run first (from which we can get the initial pose that the robot should be set up in)
Choreo 2026 introduced generated Java constants classes containing information about the trajectories and variables in your Choreo project.
Choreo can output a Java file listing the name, total time, and blue-alliance start and end poses of each trajectory. Each trajectory is represented as a static constant of the ChoreoTraj record. The file is rewritten when the project is loaded, and when paths are generated, renamed, or deleted.
Let's consider eliminating the wrapper class and using this new feature