After following the pathplanner documentation, I found it hard to work with phoenix swerve. This redirected me to 6121’s competition repo:
After fixing up our code for our swerve, I got no errors on build, but deploying to robot resulted in a bootloop along with this error message from our robot:
Error at com.pathplanner.lib.auto.AutoBuilder.buildAutoChooser(AutoBuilder.java:671): Unhandled exception: java.lang.RuntimeException: AutoBuilder was not configured before attempting to build an auto chooser
at com.pathplanner.lib.auto.AutoBuilder.buildAutoChooser(AutoBuilder.java:671)
at com.pathplanner.lib.auto.AutoBuilder.buildAutoChooser(AutoBuilder.java:658)
at frc.robot.RobotContainer.<init>(RobotContainer.java:70)
at frc.robot.Robot.robotInit(Robot.java:18)
at edu.wpi.first.wpilibj.TimedRobot.startCompetition(TimedRobot.java:107)
at edu.wpi.first.wpilibj.RobotBase.runRobot(RobotBase.java:365)
at edu.wpi.first.wpilibj.RobotBase.startRobot(RobotBase.java:453)
at frc.robot.Main.main(Main.java:13)
I’m not sure whats really going on, as there is a autobuilder configured in our swerve module command file. (like how is was in 6121’s)
if anyone has the time, I would greatly appreciate any help, as it is our first time doing swerve and pathplanner.