java.lang.Object
org.firstinspires.ftc.teamcode.subsystems.HWC

public class HWC extends Object
Stores and Declares all hardware devices & related methods
  • Field Details

    • slidePositions

      public static int[] slidePositions
    • passoverDeliveryPos

      public static double passoverDeliveryPos
    • passoverIntakePos

      public static double passoverIntakePos
    • wristDeliveryPos

      public static double wristDeliveryPos
    • wristIntakePos

      public static double wristIntakePos
    • droneLaunchPos

      public static double droneLaunchPos
    • leftFront

      public com.qualcomm.robotcore.hardware.DcMotorEx leftFront
    • rightFront

      public com.qualcomm.robotcore.hardware.DcMotorEx rightFront
    • leftRear

      public com.qualcomm.robotcore.hardware.DcMotorEx leftRear
    • rightRear

      public com.qualcomm.robotcore.hardware.DcMotorEx rightRear
    • rightPulley

      public com.qualcomm.robotcore.hardware.DcMotorEx rightPulley
    • leftPulley

      public com.qualcomm.robotcore.hardware.DcMotorEx leftPulley
    • intakeMotor

      public com.qualcomm.robotcore.hardware.DcMotorEx intakeMotor
    • pulleyLComponent

      public RobotComponents pulleyLComponent
    • pulleyRComponent

      public RobotComponents pulleyRComponent
    • wrist

      public com.qualcomm.robotcore.hardware.Servo wrist
    • clawR

      public com.qualcomm.robotcore.hardware.Servo clawR
    • clawL

      public com.qualcomm.robotcore.hardware.Servo clawL
    • passoverArmLeft

      public com.qualcomm.robotcore.hardware.Servo passoverArmLeft
    • passoverArmRight

      public com.qualcomm.robotcore.hardware.Servo passoverArmRight
    • drone

      public com.qualcomm.robotcore.hardware.Servo drone
    • colorLeft

      public com.qualcomm.robotcore.hardware.ColorRangeSensor colorLeft
    • colorRight

      public com.qualcomm.robotcore.hardware.ColorRangeSensor colorRight
    • distLeft

      public com.qualcomm.robotcore.hardware.DistanceSensor distLeft
    • distRight

      public com.qualcomm.robotcore.hardware.DistanceSensor distRight
    • currentGamepad1

      public com.qualcomm.robotcore.hardware.Gamepad currentGamepad1
    • currentGamepad2

      public com.qualcomm.robotcore.hardware.Gamepad currentGamepad2
    • previousGamepad1

      public com.qualcomm.robotcore.hardware.Gamepad previousGamepad1
    • previousGamepad2

      public com.qualcomm.robotcore.hardware.Gamepad previousGamepad2
    • webcam

      public org.firstinspires.ftc.robotcore.external.hardware.camera.WebcamName webcam
    • drive

      public SampleMecanumDrive drive
    • time

      public com.qualcomm.robotcore.util.ElapsedTime time
    • sleepTime

      public com.qualcomm.robotcore.util.ElapsedTime sleepTime
    • telemetry

      org.firstinspires.ftc.robotcore.external.Telemetry telemetry
  • Constructor Details

    • HWC

      public HWC(@NonNull com.qualcomm.robotcore.hardware.HardwareMap hardwareMap, org.firstinspires.ftc.robotcore.external.Telemetry telemetry, boolean roadrunner)
      Constructor for HWC, declares all hardware components
      Parameters:
      hardwareMap - HardwareMap - Used to retrieve hardware devices
      telemetry - Telemetry - Used to add telemetry to driver hub
  • Method Details

    • toggleClaw

      public void toggleClaw(char servo)
    • elapsedTimeSleep

      public void elapsedTimeSleep(int milliseconds)
    • initTFOD

      public void initTFOD(String TFOD_MODEL_ASSET)
    • detectElement

      public HWC.Location detectElement(AllianceColor allianceColor)
    • toString

      @NonNull public String toString()
      Overrides:
      toString in class Object