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

@@ -294,6 +294,7 @@ TEST_P(SimVisionSystemCameraPitchParamTest, CameraPitch) {
frc::Transform2d(frc::Translation2d(), frc::Rotation2d()), 0.0_m,
units::degree_t(testPitch));
photonlib::PhotonCamera::SetVersionCheckEnabled(false);
sysUnderTest.ProcessFrame(robotPose);
auto result = sysUnderTest.cam.GetLatestResult();
ASSERT_TRUE(result.HasTargets());