We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8ea5e3c + 23d244c commit 8c3eef8Copy full SHA for 8c3eef8
java/SwerveWithPathPlanner/src/main/java/frc/robot/RobotContainer.java
@@ -10,6 +10,7 @@
10
import com.ctre.phoenix6.swerve.SwerveRequest;
11
12
import com.pathplanner.lib.auto.AutoBuilder;
13
+import com.pathplanner.lib.commands.FollowPathCommand;
14
15
import edu.wpi.first.math.geometry.Rotation2d;
16
import edu.wpi.first.wpilibj.smartdashboard.SendableChooser;
@@ -48,6 +49,9 @@ public RobotContainer() {
48
49
SmartDashboard.putData("Auto Mode", autoChooser);
50
51
configureBindings();
52
+
53
+ // Warmup PathPlanner to avoid Java pauses
54
+ FollowPathCommand.warmupCommand().schedule();
55
}
56
57
private void configureBindings() {
0 commit comments