Skip to content

Commit

Permalink
Merge pull request #241 from Technologyman00/dev
Browse files Browse the repository at this point in the history
Add Warmup for Pathfinding
  • Loading branch information
thenetworkgrinch authored Oct 23, 2024
2 parents 330e69f + 18831b4 commit bf60b00
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

import com.pathplanner.lib.auto.AutoBuilder;
import com.pathplanner.lib.commands.PathPlannerAuto;
import com.pathplanner.lib.commands.PathfindingCommand;
import com.pathplanner.lib.path.PathConstraints;
import com.pathplanner.lib.path.PathPlannerPath;
import com.pathplanner.lib.util.HolonomicPathFollowerConfig;
Expand Down Expand Up @@ -182,6 +183,10 @@ public void setupPathPlanner()
},
this // Reference to this subsystem to set requirements
);

//Preload PathPlanner Path finding
// IF USING CUSTOM PATHFINDER ADD BEFORE THIS LINE
PathfindingCommand.warmupCommand().schedule();
}

/**
Expand Down

0 comments on commit bf60b00

Please sign in to comment.