We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 631df14 commit 245efbcCopy full SHA for 245efbc
1 file changed
src/main/java/frc/robot/Robot.java
@@ -67,11 +67,13 @@ public void disabledPeriodic() {
67
@Override
68
public void autonomousInit() {
69
m_autonomousCommand = m_robotContainer.getAutonomousCommand();
70
+ m_teleopInitCommand = m_robotContainer.getTeleopInitCommand();
71
+
72
+ m_teleopInitCommand.schedule();
73
74
// schedule the autonomous command (example)
75
if (m_autonomousCommand != null) {
76
m_autonomousCommand.schedule();
-
77
}
78
79
@@ -91,6 +93,7 @@ public void teleopInit() {
91
93
92
94
m_autonomousCommand.cancel();
95
96
97
m_teleopInitCommand = m_robotContainer.getTeleopInitCommand();
98
m_teleopInitCommand.schedule();
99
0 commit comments