From 567666b1bdfebdeae84783c697f4fd065a01d867 Mon Sep 17 00:00:00 2001 From: notaroboticsenthusiast <91231142+notaroboticsenthusiast@users.noreply.github.com> Date: Thu, 26 Oct 2023 20:59:55 -0700 Subject: [PATCH] actually schedule the reset command --Gabe --- src/main/java/frc/robot/Robot.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/java/frc/robot/Robot.java b/src/main/java/frc/robot/Robot.java index d8b3aba..addedc6 100644 --- a/src/main/java/frc/robot/Robot.java +++ b/src/main/java/frc/robot/Robot.java @@ -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(); } }