mirror of
https://github.com/PhotonVision/photonvision
synced 2026-06-22 01:11:40 +00:00
fixed res check on calibration
This commit is contained in:
@@ -54,11 +54,7 @@ public class USBCameraCapture implements CameraCapture {
|
||||
}
|
||||
|
||||
public void addCalibrationData(CameraCalibrationConfig newConfig) {
|
||||
for (CameraCalibrationConfig c : calibrationList){
|
||||
if (newConfig.resolution == c.resolution){
|
||||
calibrationList.remove(c);
|
||||
}
|
||||
}
|
||||
calibrationList.removeIf(c -> newConfig.resolution.height == c.resolution.height && newConfig.resolution.width == c.resolution.width);
|
||||
calibrationList.add(newConfig);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user