Hi, i’m trying to make paths that work during teleop, but i haven’t been able to do it, whenever i try to run the code the path doesn’t run and it gives me the error CommandScheduler loop overrun .
Here is the line of code:
` else if(AutoPilot.getAsBoolean()==true){
PathPlannerTrajectory traj= s_Swerve.generate_AP_Path();
s_Swerve.followTrajectoryCommand(traj,false);
}`
Even if the paths fail for teleop they work as intended for autonomous mode.