Rename USBCamera to USBCameraProcess & abstractify

- Most classes now take a CameraProcess instead of a USBCameraProcess
This commit is contained in:
Matt
2019-11-07 09:10:09 -08:00
parent 338c59e783
commit cc2c065dc8
9 changed files with 27 additions and 21 deletions

View File

@@ -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;

View File

@@ -80,7 +80,7 @@ public class USBCameraProcess implements CameraProcess {
}
}
// USBCamera stuff
// USBCameraProcess stuff
@Override
public String getCamName() {

View File

@@ -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);