mirror of
https://github.com/PhotonVision/photonvision
synced 2026-06-21 01:01:41 +00:00
Rename USBCamera to USBCameraProcess & abstractify
- Most classes now take a CameraProcess instead of a USBCameraProcess
This commit is contained in:
@@ -122,7 +122,7 @@ public class StandardCVProcess implements CVProcess {
|
||||
pipelineResult.IsValid = true;
|
||||
switch (currentPipeline.calibrationMode) {
|
||||
case None:
|
||||
///use the center of the USBCamera to find the pitch and yaw difference
|
||||
///use the center of the USBCameraProcess to find the pitch and yaw difference
|
||||
pipelineResult.CalibratedX = cameraValues.CenterX;
|
||||
pipelineResult.CalibratedY = cameraValues.CenterY;
|
||||
break;
|
||||
|
||||
@@ -80,7 +80,7 @@ public class USBCameraProcess implements CameraProcess {
|
||||
}
|
||||
}
|
||||
|
||||
// USBCamera stuff
|
||||
// USBCameraProcess stuff
|
||||
|
||||
@Override
|
||||
public String getCamName() {
|
||||
|
||||
@@ -41,7 +41,7 @@ public class VisionProcess implements Runnable {
|
||||
|
||||
public VisionProcess(CameraProcess cameraProcess) {
|
||||
|
||||
// USBCamera settings
|
||||
// USBCameraProcess settings
|
||||
cvProcess = new StandardCVProcess(cameraProcess.getCamVals());
|
||||
this.cameraProcess = cameraProcess; // new USBCameraProcess(cameraProcess);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user