From 5ea81285ce1e30f2c39720904dcf6b2b66ab3c0f Mon Sep 17 00:00:00 2001 From: Scott Barnes Date: Wed, 15 Nov 2023 15:23:46 -0600 Subject: [PATCH] Rename --- .../firstinspires/ftc/teamcode/hardware/Camera.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/TeamCode/src/main/java/org/firstinspires/ftc/teamcode/hardware/Camera.java b/TeamCode/src/main/java/org/firstinspires/ftc/teamcode/hardware/Camera.java index de7968f..f5a05a2 100644 --- a/TeamCode/src/main/java/org/firstinspires/ftc/teamcode/hardware/Camera.java +++ b/TeamCode/src/main/java/org/firstinspires/ftc/teamcode/hardware/Camera.java @@ -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;