Minor fix in vision.

This commit is contained in:
Titan Robotics Club
2024-09-23 01:48:26 -07:00
parent 64f5acbf83
commit 05b31a5514

View File

@ -109,10 +109,10 @@ public class Vision
{
FtcOpMode opMode = FtcOpMode.getInstance();
if (robot.robotInfo.webCam1.camName == null &&
if (robot.robotInfo.webCam1 == null &&
(RobotParams.Preferences.useWebCam || RobotParams.Preferences.tuneColorBlobVision))
{
throw new IllegalArgumentException("Must provide a valid WebCam 1 name.");
throw new IllegalArgumentException("Must provide valid WebCam 1 info.");
}
this.tracer = new TrcDbgTrace();