Skip to content
This repository has been archived by the owner on Sep 27, 2024. It is now read-only.

Controls Changes #64

Merged
merged 5 commits into from
Dec 11, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -116,21 +116,21 @@ public void loop() {
telemetry.addData("rightBPower: ", rightBPower);

// Calling scoring() via left bumper and resetting via left trigger
if (gamepad2.left_bumper) {
if (gamepad2.x) {
scoring();
} else if (gamepad2.left_trigger > 0.5 && !scoringATM) {
} else if (gamepad2.y && !scoringATM) {
resetPos();
telemetry.addData("Scoring Pos", "Reset");
}

// Move claw via x and y.
if (gamepad2.x) {
if (gamepad2.left_bumper) {
robot.<Servo>get("clawLock").setPosition(robot.<Servo>get("clawLock").getPosition() + -0.125);
} else if (gamepad2.y) {
} else if (gamepad2.left_trigger > 0.5) {
robot.<Servo>get("clawLock").setPosition(robot.<Servo>get("clawLock").getPosition() + 0.125);
}

// Moving VS maually via dpad up and down.
// Moving VS manually via dpad up and down.
if (gamepad2.dpad_up) {
robot.<DcMotor>get("leftViperSlide").setPower(0.5);
robot.<DcMotor>get("rightViperSlide").setPower(0.5);
Expand Down
Loading