From 9f53f911af6bd70aaf9708e69f73f597da77b4ef Mon Sep 17 00:00:00 2001 From: 535tobor <535tobor@gmail.com> Date: Sat, 3 Feb 2024 12:01:14 -0500 Subject: [PATCH] 2.0 --- .../gamecode/autonomous/BlueBoardSide.java | 2 +- .../gamecode/autonomous/BlueFarSideGuess.java | 2 +- .../teamcode/gamecode/autonomous/RedFarSide.java | 14 +++++++------- .../gamecode/autonomous/RedFarSideGuess.java | 2 +- .../outputs/motors/servos/claw/clawMovements.java | 4 ++++ 5 files changed, 14 insertions(+), 10 deletions(-) diff --git a/TeamCode/src/main/java/org/firstinspires/ftc/teamcode/gamecode/autonomous/BlueBoardSide.java b/TeamCode/src/main/java/org/firstinspires/ftc/teamcode/gamecode/autonomous/BlueBoardSide.java index a944932..922151b 100644 --- a/TeamCode/src/main/java/org/firstinspires/ftc/teamcode/gamecode/autonomous/BlueBoardSide.java +++ b/TeamCode/src/main/java/org/firstinspires/ftc/teamcode/gamecode/autonomous/BlueBoardSide.java @@ -186,7 +186,7 @@ public void runStart() { telemetry.update(); forwardAuto(23, 5, 800); strafeLeftAuto(5,1,800); - openClaw(); + openClaw(0.5); strafeLeftAuto(40,2,1000); } diff --git a/TeamCode/src/main/java/org/firstinspires/ftc/teamcode/gamecode/autonomous/BlueFarSideGuess.java b/TeamCode/src/main/java/org/firstinspires/ftc/teamcode/gamecode/autonomous/BlueFarSideGuess.java index 1859bd6..a496009 100644 --- a/TeamCode/src/main/java/org/firstinspires/ftc/teamcode/gamecode/autonomous/BlueFarSideGuess.java +++ b/TeamCode/src/main/java/org/firstinspires/ftc/teamcode/gamecode/autonomous/BlueFarSideGuess.java @@ -112,7 +112,7 @@ public void runStart() { strafeRightAuto(8,3,500); // forwardAuto(15,3,500); // strafeRightAuto(17,3,500); // - forwardAuto(58,4,500); + forwardAuto(48,4,500); strafeLeftAuto(123,5,500); // let go of pixel diff --git a/TeamCode/src/main/java/org/firstinspires/ftc/teamcode/gamecode/autonomous/RedFarSide.java b/TeamCode/src/main/java/org/firstinspires/ftc/teamcode/gamecode/autonomous/RedFarSide.java index 4592d75..a9d726c 100644 --- a/TeamCode/src/main/java/org/firstinspires/ftc/teamcode/gamecode/autonomous/RedFarSide.java +++ b/TeamCode/src/main/java/org/firstinspires/ftc/teamcode/gamecode/autonomous/RedFarSide.java @@ -180,7 +180,7 @@ public void runStart() { telemetry.update(); forwardAuto(23, 5, 800); strafeLeftAuto(5,1,800); - openClaw(); + openClaw(0.5); strafeRightAuto(5,2,1000); backwardAuto(50,1,800); } @@ -198,12 +198,12 @@ public void runStart() { } // park - forwardAuto(3, 3,500); // - strafeLeftAuto(8,3,500); // - forwardAuto(15,3,500); // - strafeLeftAuto(17,3,500); // - forwardAuto(58,4,500); - strafeRightAuto(123,3,500); + forwardAuto(3, 3,800); // + strafeLeftAuto(8,3,800); // + forwardAuto(15,3,800); // + strafeLeftAuto(17,3,800); // + forwardAuto(48,4,800); + strafeRightAuto(123,3,1000); // let go of pixel } diff --git a/TeamCode/src/main/java/org/firstinspires/ftc/teamcode/gamecode/autonomous/RedFarSideGuess.java b/TeamCode/src/main/java/org/firstinspires/ftc/teamcode/gamecode/autonomous/RedFarSideGuess.java index 856f98c..4310403 100644 --- a/TeamCode/src/main/java/org/firstinspires/ftc/teamcode/gamecode/autonomous/RedFarSideGuess.java +++ b/TeamCode/src/main/java/org/firstinspires/ftc/teamcode/gamecode/autonomous/RedFarSideGuess.java @@ -111,7 +111,7 @@ public void runStart() { strafeLeftAuto(8,3,500); // forwardAuto(15,3,500); // strafeLeftAuto(17,3,500); // - forwardAuto(58,4,500); + forwardAuto(48,4,500); strafeRightAuto(123,3,500); // let go of pixel diff --git a/TeamCode/src/main/java/org/firstinspires/ftc/teamcode/operations/outputs/motors/servos/claw/clawMovements.java b/TeamCode/src/main/java/org/firstinspires/ftc/teamcode/operations/outputs/motors/servos/claw/clawMovements.java index b4152e1..d76abb6 100644 --- a/TeamCode/src/main/java/org/firstinspires/ftc/teamcode/operations/outputs/motors/servos/claw/clawMovements.java +++ b/TeamCode/src/main/java/org/firstinspires/ftc/teamcode/operations/outputs/motors/servos/claw/clawMovements.java @@ -8,6 +8,10 @@ public static void openClaw() { claw.setPosition(1); // 0.5 } + public static void openClaw(double value) { + claw.setPosition(value); // 0.5 + } + public static void closeClaw() { claw.setPosition(0); // 0.15 }