Skip to content

Commit 245efbc

Browse files
committed
Reset hood in both autonomous and teleopinit
1 parent 631df14 commit 245efbc

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/main/java/frc/robot/Robot.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,13 @@ public void disabledPeriodic() {
6767
@Override
6868
public void autonomousInit() {
6969
m_autonomousCommand = m_robotContainer.getAutonomousCommand();
70+
m_teleopInitCommand = m_robotContainer.getTeleopInitCommand();
71+
72+
m_teleopInitCommand.schedule();
7073

7174
// schedule the autonomous command (example)
7275
if (m_autonomousCommand != null) {
7376
m_autonomousCommand.schedule();
74-
7577
}
7678
}
7779

@@ -91,6 +93,7 @@ public void teleopInit() {
9193
if (m_autonomousCommand != null) {
9294
m_autonomousCommand.cancel();
9395
}
96+
9497
m_teleopInitCommand = m_robotContainer.getTeleopInitCommand();
9598
m_teleopInitCommand.schedule();
9699
}

0 commit comments

Comments
 (0)