Skip to content

Commit

Permalink
Merge pull request #4 from Team-6615-Bellevillains/warmup-pathplanner
Browse files Browse the repository at this point in the history
Warmup pathplanner
  • Loading branch information
hardy-ethan authored Mar 26, 2024
2 parents 936e18a + fb23046 commit 8970dda
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/frc/robot/Robot.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

package frc.robot;

import com.pathplanner.lib.commands.FollowPathCommand;
import edu.wpi.first.wpilibj.Filesystem;
import edu.wpi.first.wpilibj.TimedRobot;
import edu.wpi.first.wpilibj.Timer;
Expand Down Expand Up @@ -53,6 +54,9 @@ public void robotInit() {
// Create a timer to disable motor brake a few seconds after disable. This will let the robot stop
// immediately when disabled, but then also let it be pushed more
disabledTimer = new Timer();

// Prevent first PathPlanner path following command from being slow. Doesn't actually move the robot.
FollowPathCommand.warmupCommand().schedule();
}

/**
Expand Down

0 comments on commit 8970dda

Please sign in to comment.