Skip to content

Commit

Permalink
actually schedule the reset command
Browse files Browse the repository at this point in the history
--Gabe
  • Loading branch information
willitcode committed Oct 27, 2023
1 parent 292a2db commit 567666b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/main/java/frc/robot/Robot.java
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,11 @@ public void teleopInit() {
// this line or comment it out.
if (m_autonomousCommand != null) {
m_autonomousCommand.cancel();
// Opens the
m_robotContainer.getResetCommand().schedule();
if (!DriverStation.isFMSAttached()) {
m_robotContainer.getResetDrivePoseCommand();
}
}

m_robotContainer.getResetCommand().schedule();
if (!DriverStation.isFMSAttached()) {
m_robotContainer.getResetDrivePoseCommand().schedule();
}
}

Expand Down

0 comments on commit 567666b

Please sign in to comment.