Skip to content

Commit

Permalink
servo values update
Browse files Browse the repository at this point in the history
  • Loading branch information
shuban-789 committed Dec 21, 2024
1 parent 3f02f64 commit cd1e1c3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down

0 comments on commit cd1e1c3

Please sign in to comment.