Path Planner Command Help

Hi, I’m programming my robot’s autonomous function, but I got stuck at the stage of inserting named Path Planner commands into my Robot Container, the code is below.

You configure pathplanner in the constructor of the swerve subsystem which is done here.

and you register the named command here.

You need to register the named command before setupPathPlanner is called. So just call it afterwards in the RobotContainer constructor!

Alright, so i need to put de register named command inside setupPathPlanner, because i don’t understand how i can register named command before setupPathPlanner.

1 Like