Rename
This commit is contained in:
parent
5238efc1cc
commit
5ea81285ce
|
@ -24,7 +24,7 @@ public class Camera {
|
||||||
@Getter
|
@Getter
|
||||||
@Setter
|
@Setter
|
||||||
private CenterStageCommon.Alliance alliance;
|
private CenterStageCommon.Alliance alliance;
|
||||||
private PropDetectionPipeline colorDetectionPipeline;
|
private PropDetectionPipeline prop;
|
||||||
private AprilTagProcessor aprilTag;
|
private AprilTagProcessor aprilTag;
|
||||||
private VisionPortal visionPortal;
|
private VisionPortal visionPortal;
|
||||||
private Telemetry telemetry;
|
private Telemetry telemetry;
|
||||||
|
@ -43,9 +43,9 @@ public class Camera {
|
||||||
.setDrawTagID(true)
|
.setDrawTagID(true)
|
||||||
.setDrawTagOutline(true)
|
.setDrawTagOutline(true)
|
||||||
.build();
|
.build();
|
||||||
this.colorDetectionPipeline = new PropDetectionPipeline();
|
this.prop = new PropDetectionPipeline();
|
||||||
this.visionPortal = VisionPortal.easyCreateWithDefaults(
|
this.visionPortal = VisionPortal.easyCreateWithDefaults(
|
||||||
hardwareMap.get(WebcamName.class, WEBCAM_NAME), aprilTag, colorDetectionPipeline);
|
hardwareMap.get(WebcamName.class, WEBCAM_NAME), aprilTag, prop);
|
||||||
this.initialized = true;
|
this.initialized = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -57,9 +57,9 @@ public class Camera {
|
||||||
switch (alliance) {
|
switch (alliance) {
|
||||||
|
|
||||||
case Blue:
|
case Blue:
|
||||||
return this.colorDetectionPipeline.getBlue();
|
return this.prop.getBlue();
|
||||||
case Red:
|
case Red:
|
||||||
return this.colorDetectionPipeline.getRed();
|
return this.prop.getRed();
|
||||||
}
|
}
|
||||||
|
|
||||||
return INVALID_DETECTION;
|
return INVALID_DETECTION;
|
||||||
|
|
Loading…
Reference in New Issue