From cd1e1c314d615b6b988247c416cd97f28f462e12 Mon Sep 17 00:00:00 2001 From: shuban-789 Date: Fri, 20 Dec 2024 18:29:13 -0800 Subject: [PATCH] servo values update --- .../main/java/org/firstinspires/ftc/teamcode/Hardware.java | 6 +++--- .../java/org/firstinspires/ftc/teamcode/MecanumTeleOp2.java | 6 ++---- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/TeamCode/src/main/java/org/firstinspires/ftc/teamcode/Hardware.java b/TeamCode/src/main/java/org/firstinspires/ftc/teamcode/Hardware.java index 9a19ef729ba4..8c83611908f2 100644 --- a/TeamCode/src/main/java/org/firstinspires/ftc/teamcode/Hardware.java +++ b/TeamCode/src/main/java/org/firstinspires/ftc/teamcode/Hardware.java @@ -30,11 +30,11 @@ public class Hardware extends HardwareMapper implements TriOdoProvider { public static final double SLIDE_OUTWARD_TIME = 0.45; // seconds public static final double SLIDE_OVERSHOOT = 0.05; public static final double FLIP_DOWN = 0.05; - public static final double FRONT_OPEN = 0.33; + public static final double FRONT_OPEN = 0.25; public static final double FRONT_CLOSE = 0.07; public static final double FLIP_UP = 0.98; - public static final double CLAW_CLOSE = 0.02; - public static final double CLAW_OPEN = 0.55; + public static final double CLAW_CLOSE = 0.3; + public static final double CLAW_OPEN = 0.5; public static final double WRIST_UP = 0.42; public static final double WRIST_BACK = 0.30; public static final double ARM_POWER = 0.2; diff --git a/TeamCode/src/main/java/org/firstinspires/ftc/teamcode/MecanumTeleOp2.java b/TeamCode/src/main/java/org/firstinspires/ftc/teamcode/MecanumTeleOp2.java index b0117171bef5..05dd4455f7f1 100644 --- a/TeamCode/src/main/java/org/firstinspires/ftc/teamcode/MecanumTeleOp2.java +++ b/TeamCode/src/main/java/org/firstinspires/ftc/teamcode/MecanumTeleOp2.java @@ -412,14 +412,12 @@ public void wrist() { } public void claw() { - final double open = 0.02; - final double close = 0.55; if (gamepad2.left_bumper) { abandonLock(Locks.ArmAssembly); - hardware.claw.setPosition(open); + hardware.claw.setPosition(Hardware.CLAW_OPEN); } else if (gamepad2.right_bumper) { abandonLock(Locks.ArmAssembly); - hardware.claw.setPosition(close); + hardware.claw.setPosition(Hardware.CLAW_CLOSE); } }