How to put Trajectory command in a class file

I have the Trajectory following in the getAuto method currently, but I want to have multiple paths. I can’t seem to find a way to put them in a class as I’m confused on what needs to go where. Any help or examples are appreciated.

We used something like to put them in one class. Then we construct the class and call the desired trajectories in RobotContainer file. The only extra we have is the getRamsete function in our class, which essentially returns the ramsete command of a given trajectory. Hope this helps.

1 Like

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.