Exp and controlling the claw to a certain degree with the remote

I am able to figure out how to program the robot to limit arm and claw motions with degrees. Is there a way to do that with a button press? For example, if button L1 is pressed, open claw to 60degree and hold position. Thanks :slight_smile:

You could use the move absolute function for this. It allows you to set the angle and the speed for the arm to reach that position. The motor will lock when the target is reached.

Would you be able to provide me an example of that? Is that a function in Vex Code EXP? Thanks!

I am using pros, but it looks like motor.move_absolute(-1650, -100); 1650 is degree, -100 is motor power