Add version verification disable switch in photonlib (#437)

This commit is contained in:
Matt
2022-02-28 07:37:52 -05:00
committed by GitHub
parent 5655ca6890
commit 9090aa6bcc
5 changed files with 18 additions and 0 deletions

View File

@@ -130,6 +130,7 @@ class SimVisionSystemTest {
new SimVisionSystem("Test", 80.0, 0.0, new Transform2d(), 1, 99999, 640, 480, 0);
sysUnderTest.addSimVisionTarget(new SimVisionTarget(targetPose, 1.0, 3.0, 3.0));
PhotonCamera.setVersionCheckEnabled(false);
var robotPose = new Pose2d(new Translation2d(5, 0), Rotation2d.fromDegrees(5));
sysUnderTest.processFrame(robotPose);
assertTrue(sysUnderTest.cam.getLatestResult().hasTargets());