I am participating in the vex tower takeover challenge, and for a reason I cannot figure out, in our autonomous period code, our motors don’t seem to move. I have tried every move command, and asked lots of people at the event. I was recommended to see if people on the forum could help, so is there any reason the below code should not work inside a competition template?
Brain.Screen.clearLine();
Brain.Screen.print("autonomous is running");
while(Brain.timer(sec) <= 5 && LeftMotor.rotation(degrees) >= -90 ){
LeftMotor.rotateFor(reverse , 1 , degrees);
LeftMotor2.rotateFor(reverse , 1 , degrees);
RightMotor.rotateFor(reverse , 1 , degrees);
RightMotor2.rotateFor(reverse , 1 , degrees);
}
LeftMotor.resetRotation();
Brain.Timer.reset();
Brain.Screen.clearLine();
Brain.Screen.print("halfway there!");
while(Brain.timer(sec) <= 5 && LeftMotor.rotation(degrees) <=90 ){
LeftMotor.rotateFor(forward , 1 , degrees);
LeftMotor2.rotateFor(forward , 1 , degrees);
RightMotor.rotateFor(forward , 1 , degrees);
RightMotor2.rotateFor(forward , 1 , degrees);
}
LeftMotor.resetRotation();
Brain.Screen.clearLine();
Brain.Timer.reset();
LeftMotor.stop();
LeftMotor2.stop();
RightMotor.stop();
RightMotor2.stop();
Brain.Screen.clearLine();
Brain.Screen.print("autonomous has ended");