mirror of
https://github.com/PhotonVision/photonvision
synced 2026-06-23 01:21:40 +00:00
removing old calibrations before saving new
This commit is contained in:
@@ -54,6 +54,11 @@ public class USBCameraCapture implements CameraCapture {
|
||||
}
|
||||
|
||||
public void addCalibrationData(CameraCalibrationConfig newConfig) {
|
||||
for (CameraCalibrationConfig c : calibrationList){
|
||||
if (newConfig.resolution == c.resolution){
|
||||
calibrationList.remove(c);
|
||||
}
|
||||
}
|
||||
calibrationList.add(newConfig);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user