Skip to content

Commit bab03f1

Browse files
committed
Turn off vision
1 parent 3c83544 commit bab03f1

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/main/java/frc/robot/GlobalConstants.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public enum RobotMode {
2222
SIM,
2323
}
2424

25-
public static final RobotMode ROBOT_MODE = "Crash".equals(System.getenv("CI_NAME")) || !Robot.isReal() ? RobotMode.SIM : RobotMode.REAL;
25+
public static final RobotMode ROBOT_MODE = "Ball".equals(System.getenv("CI_NAME")) || !Robot.isReal() ? RobotMode.SIM : RobotMode.REAL;
2626

2727
public static class Controllers {
2828

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,11 @@ public Robot() {
3434
@Override
3535
public void robotPeriodic() {
3636
CommandScheduler.getInstance().run();
37-
Vision.getInstance().periodic();
3837
Drive.getInstance().periodic();
3938
GamePieceFinder.getInstance().periodic();
39+
if (GlobalConstants.ROBOT_MODE != GlobalConstants.RobotMode.SIM) {
40+
Vision.getInstance().periodic();
41+
}
4042
}
4143

4244
@Override

0 commit comments

Comments
 (0)