Updated ftclib, trclib.

Don't allow colorblob tuning test to switch camera. It only supports webcam1.
This commit is contained in:
Titan Robotics Club
2024-09-21 18:17:48 -07:00
parent 223a7eb55b
commit accc1a549f
3 changed files with 2 additions and 13 deletions

View File

@ -549,17 +549,6 @@ public class FtcTest extends FtcTeleOp
}
passToTeleOp = false;
}
else if ((testChoices.test == Test.TUNE_COLORBLOB_VISION || testChoices.test == Test.VISION_TEST) &&
robot.vision != null)
{
// Can only switch camera if we have two.
if (pressed && frontWebcam != null && rearWebcam != null)
{
robot.vision.setActiveWebcam(
robot.vision.getActiveWebcam() != frontWebcam? frontWebcam: rearWebcam);
}
passToTeleOp = false;
}
break;
case B: