Issue with Claw Motor in Autonomous Program

Hello,

We are in the middle of our autonomous programming using Graphical Robot C and are having a little trouble with one line of code - it should be an easy fix but we didn’t get it sorted this afternoon.

MoveMotor (ArmMotor, 0.75 Rotations, 50% engine power)
MoveMotor (ClawMotor, -1 Rotations, 50% engine power)
TurnLeft (270 degrees, 50% engine power)
…Other lines of code!

The bolded line is causing the issue. When we set the rotations to 1 the claw closed and the program just stopped running from there. When we set it to -1 the claw opened but still the program stopped running. Either way the lines of code following the bolded statement do not run. When I comment out the above line the program runs as planned.

What is it that we are messing up?

My guess is that the motor is becomming stalled before it completes the rotation and so is never completing that command and so never moves on. If you change it to 0.5 for example, does it complete and move on?

I had the same issue and doing what calvc01 said worked for me. My issue was with the clawbot in virtual worlds. When we reduced the motor rotations (or degrees) the motor did not stall out and it continued the rest of the code

If your claw is similar to the standard VEX IQ Clawbot this happens to my students often. The clawbot claw will only rotate between 40 and 60 degrees. When my students tell the robot to rotate the claw over this amount the program stops because it is waiting to complete the command. For example, the gears moved 50 degrees but were programmed to move 360 degrees. Hope this helps.

My guess is that the motor is becomming stalled before it completes the rotation and so is never completing that command and so never moves on…