Class HWC
java.lang.Object
org.firstinspires.ftc.teamcode.subsystems.HWC
Stores and Declares all hardware devices & related methods
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptioncom.qualcomm.robotcore.hardware.Servo
com.qualcomm.robotcore.hardware.Servo
com.qualcomm.robotcore.hardware.ColorRangeSensor
com.qualcomm.robotcore.hardware.ColorRangeSensor
com.qualcomm.robotcore.hardware.Gamepad
com.qualcomm.robotcore.hardware.Gamepad
com.qualcomm.robotcore.hardware.DistanceSensor
com.qualcomm.robotcore.hardware.DistanceSensor
com.qualcomm.robotcore.hardware.Servo
static double
com.qualcomm.robotcore.hardware.DcMotorEx
com.qualcomm.robotcore.hardware.DcMotorEx
com.qualcomm.robotcore.hardware.DcMotorEx
com.qualcomm.robotcore.hardware.DcMotorEx
com.qualcomm.robotcore.hardware.Servo
com.qualcomm.robotcore.hardware.Servo
static double
static double
com.qualcomm.robotcore.hardware.Gamepad
com.qualcomm.robotcore.hardware.Gamepad
com.qualcomm.robotcore.hardware.DcMotorEx
com.qualcomm.robotcore.hardware.DcMotorEx
com.qualcomm.robotcore.hardware.DcMotorEx
com.qualcomm.robotcore.util.ElapsedTime
static int[]
(package private) org.firstinspires.ftc.robotcore.external.Telemetry
com.qualcomm.robotcore.util.ElapsedTime
org.firstinspires.ftc.robotcore.external.hardware.camera.WebcamName
com.qualcomm.robotcore.hardware.Servo
static double
static double
-
Constructor Summary
ConstructorDescriptionHWC
(com.qualcomm.robotcore.hardware.HardwareMap hardwareMap, org.firstinspires.ftc.robotcore.external.Telemetry telemetry, boolean roadrunner) Constructor for HWC, declares all hardware components -
Method Summary
Modifier and TypeMethodDescriptiondetectElement
(AllianceColor allianceColor) void
elapsedTimeSleep
(int milliseconds) void
void
toggleClaw
(char servo) toString()
-
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
-
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
-
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 devicestelemetry
- Telemetry - Used to add telemetry to driver hub
-
-
Method Details