PathPlanner help with calling getAutonomousCommand()

My team is not sure how to call a command in the getAutonomousCommand() section of the RobotContainer file. I’ve tried several things and searched for similar examples. We get the error in the screen shot below.

Here is our github: GitHub - TheResistance4925/SWERVE-2023-2024

It looks like your command is called “exampleAuto” but the file it’s in is “ExampleAuto.” The names need to match, and then you can import ExampleAuto into your RobotContainer file and return a new ExampleAuto from getAutonomousCommand(). That should fix the error!

1 Like

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