This commit is contained in:
Scott Barnes 2023-11-15 15:23:46 -06:00
parent 5238efc1cc
commit 5ea81285ce
1 changed files with 5 additions and 5 deletions

View File

@ -24,7 +24,7 @@ public class Camera {
@Getter
@Setter
private CenterStageCommon.Alliance alliance;
private PropDetectionPipeline colorDetectionPipeline;
private PropDetectionPipeline prop;
private AprilTagProcessor aprilTag;
private VisionPortal visionPortal;
private Telemetry telemetry;
@ -43,9 +43,9 @@ public class Camera {
.setDrawTagID(true)
.setDrawTagOutline(true)
.build();
this.colorDetectionPipeline = new PropDetectionPipeline();
this.prop = new PropDetectionPipeline();
this.visionPortal = VisionPortal.easyCreateWithDefaults(
hardwareMap.get(WebcamName.class, WEBCAM_NAME), aprilTag, colorDetectionPipeline);
hardwareMap.get(WebcamName.class, WEBCAM_NAME), aprilTag, prop);
this.initialized = true;
}
@ -57,9 +57,9 @@ public class Camera {
switch (alliance) {
case Blue:
return this.colorDetectionPipeline.getBlue();
return this.prop.getBlue();
case Red:
return this.colorDetectionPipeline.getRed();
return this.prop.getRed();
}
return INVALID_DETECTION;