File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3535 */
3636public class Robot extends LoggedRobot {
3737 private Command autonomousCommand ;
38- private RobotContainer robotContainer ;
38+ private final RobotContainer robotContainer ;
3939
4040 public Robot () {
4141 // Record metadata
@@ -142,9 +142,9 @@ public void autonomousInit() {
142142 @ Override
143143 public void autonomousPeriodic () {}
144144
145- /** This function is called once when teleop is enabled . */
145+ /** This function is called after autonomous exits . */
146146 @ Override
147- public void teleopInit () {
147+ public void autonomousExit () {
148148 // This makes sure that the autonomous stops running when
149149 // teleop starts running. If you want the autonomous to
150150 // continue until interrupted by another command, remove
@@ -154,6 +154,10 @@ public void teleopInit() {
154154 }
155155 }
156156
157+ /** This function is called once when teleop is enabled. */
158+ @ Override
159+ public void teleopInit () {}
160+
157161 /** This function is called periodically during operator control. */
158162 @ Override
159163 public void teleopPeriodic () {}
You can’t perform that action at this time.
0 commit comments