Skip to content

Commit 8c3eef8

Browse files
authored
Merge pull request #63 from CrossTheRoadElec/warmup
Ensure pathplanner warmup command is scheduled
2 parents 8ea5e3c + 23d244c commit 8c3eef8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

java/SwerveWithPathPlanner/src/main/java/frc/robot/RobotContainer.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
import com.ctre.phoenix6.swerve.SwerveRequest;
1111

1212
import com.pathplanner.lib.auto.AutoBuilder;
13+
import com.pathplanner.lib.commands.FollowPathCommand;
1314

1415
import edu.wpi.first.math.geometry.Rotation2d;
1516
import edu.wpi.first.wpilibj.smartdashboard.SendableChooser;
@@ -48,6 +49,9 @@ public RobotContainer() {
4849
SmartDashboard.putData("Auto Mode", autoChooser);
4950

5051
configureBindings();
52+
53+
// Warmup PathPlanner to avoid Java pauses
54+
FollowPathCommand.warmupCommand().schedule();
5155
}
5256

5357
private void configureBindings() {

0 commit comments

Comments
 (0)