Advertisement
Guest User

Untitled

a guest
Jan 27th, 2020
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.53 KB | None | 0 0
  1.             if (gamepad2.x)
  2.             {
  3.                 robot.armServo.setPosition(robot.CLAW_LOCK);
  4.             }
  5.  
  6.             if (gamepad2.y)
  7.             {
  8.                 robot.armServo.setPosition(robot.CLAW_MID_UNLOCK); // unlocks enough to fit inside intake
  9.             }
  10.  
  11.             if (gamepad2.dpad_left)
  12.             {
  13.                 robot.armServo.setPosition(robot.CLAW_UNLOCK); // fully unlocks
  14.             }
  15.  
  16.  
  17.             arm = (armLeftStickY/Math.abs(armLeftStickY))*(Math.sqrt(Math.abs(armLeftStickY)));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement