Help with creating paths for teleop

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.

Do you think you can share the entire codebase with us? Maybe a repository? It is hard to determine what is going on with just what you have given us.

Other threads may contain the information you’re looking for, if I got your question right.

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