VEX v5 ClawBot Code Help

Hello Guys! I am trying to code my VEX v5 Clawbot, but we can’t get a few of the motors to move. I don’t know if it’s our coding or it’s the motors for the robot. Can someone please help us with this issue? If possible, can someone send the code for the clawbot or tell me the issue? Thank you so much!

So, basicly you need a while true loop in your main or else it will not even run. As the main thread will end stopping your programs motor movements etc. Your main should look like this

int main(){
ArmMotor.spinFor(reverse,10,degrees);
while (true) {
// Wait forever 15 milliseconds
task::sleep(15);
}
//This loop prevents the main from returning zero and exiting the program, your loop doesn't have to be exactly like this this is just an example
}
1 Like

Ok, thank you for the help! This has been very helpful for our team!