Thanks for that info. What we will most likely end up doing is having two cameras but only streaming one at a time to the dashboard. This is the latest version of code that we have for it.(FYI this was in a command format but was changed for simplicity of this site)
Code:
Cameras cameras;
public void robotInit() {
//This is for the USB Camera
server = CameraServer.getInstance();
server.setQuality(50);
Cameras.cam = "";
server.startAutomaticCapture(Cameras.cam);
while(isEnabled()){
server.startAutomaticCapture(Cameras.cam);
}
//There is a joystick button once pressed it will activate this command SwitchCams
public void SwitchCams() {
if(Cameras.cam == "cam0"){
Cameras.cam = "cam1";
}else if(Cameras.cam == "cam1"){
Cameras.cam = "0";
//Leave following if statement equal to blank
}else if(Cameras.cam == "")
Cameras.cam = "cam0";
}