Skip to content

Commit

Permalink
fixed a small mistake in teleop init
Browse files Browse the repository at this point in the history
  • Loading branch information
catr1xLiu committed Sep 12, 2024
1 parent 6e0aee4 commit 4f66a4f
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -122,14 +122,15 @@ public void autonomousPeriodic() {
@Override
public void teleopInit() {
if (autonomousCommand != null) autonomousCommand.cancel();
robotContainer.teleOpInit();
}

/**
* This function is called periodically during operator control.
*/
@Override
public void teleopPeriodic() {
robotContainer.teleOpInit();

}

/**
Expand Down

0 comments on commit 4f66a4f

Please sign in to comment.