Skip to content

Commit

Permalink
try to prevent simulation from crashing
Browse files Browse the repository at this point in the history
  • Loading branch information
6kn4eakfr4s committed Apr 3, 2024
1 parent c5da569 commit 3f0800d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/frc/robot/RobotContainer.java
Original file line number Diff line number Diff line change
Expand Up @@ -187,11 +187,15 @@ public RobotContainer() {
driveController = new DualJoystickDriveController();
}

try {
driverCamera = new UsbCamera("fisheye", 0);
driverCamera.setVideoMode(PixelFormat.kMJPEG, 160, 120, 30);
driverCamera.setExposureManual(40);
driverCameraServer = new MjpegServer("m1", 1181);
driverCameraServer.setSource(driverCamera);
} catch (Exception e) {
System.out.print(e);
}

autonBuilder = new AutonBuilder(
intakePivotSubsystem, intakeRollerSubsystem,
Expand Down

0 comments on commit 3f0800d

Please sign in to comment.