X-Git-Url: http://challenge-bot.com/repos/?a=blobdiff_plain;f=src%2Forg%2Fusfirst%2Ffrc%2Fteam3501%2Frobot%2FRobot.java;fp=src%2Forg%2Fusfirst%2Ffrc%2Fteam3501%2Frobot%2FRobot.java;h=5e9bd3cbdb496727cd9722efc1630c5ad13c2228;hb=6bc81b557f637fa81f73c33161e82cba049235f3;hp=a8c48643019bffbf7786a505e4264316be539b42;hpb=cb8e86cb498c12dcf4e2b7a5916fc6f4926b77cf;p=3501%2F2017steamworks diff --git a/src/org/usfirst/frc/team3501/robot/Robot.java b/src/org/usfirst/frc/team3501/robot/Robot.java index a8c4864..5e9bd3c 100644 --- a/src/org/usfirst/frc/team3501/robot/Robot.java +++ b/src/org/usfirst/frc/team3501/robot/Robot.java @@ -16,6 +16,7 @@ public class Robot extends IterativeRobot { private static Shooter shooter; private static OI oi; private static Intake intake; + private static CameraServer server; @Override public void robotInit() { @@ -24,7 +25,7 @@ public class Robot extends IterativeRobot { shooter = Shooter.getShooter(); intake = Intake.getIntake(); - CameraServer server = CameraServer.getInstance(); + server = CameraServer.getInstance(); UsbCamera climberCam = server.startAutomaticCapture("climbercam", 0); UsbCamera intakeCam = server.startAutomaticCapture("intakecam", 1); @@ -32,6 +33,7 @@ public class Robot extends IterativeRobot { } public static DriveTrain getDriveTrain() { + return DriveTrain.getDriveTrain(); } @@ -47,6 +49,11 @@ public class Robot extends IterativeRobot { return Intake.getIntake(); } + public static void swapCameraFeed() { + UsbCamera climberCam = server.startAutomaticCapture("climbercam", 1); + UsbCamera intakeCam = server.startAutomaticCapture("intakecam", 0); + } + // If the gear values do not match in the left and right piston, then they are // both set to high gear @Override