I need help. Vex coding studio downloads my code to my brain and it says I can run the program but when I press the run button it doesn’t run.
Would it be possible to paste your code here? I think it may be a programming error but I’m not sure.
Are you running the “Drive” program, or running the program you downloaded directly? It seems like a code issue, like Connor said.
here the code
when(STARTED){
Clawmotor.spin(forward);
wait(.2,seconds);
while((Regular.velocity(rpm)<0)){
Clawmotor.stop();
wait(1,seconds);
Clawmotor.stop();
wait(.2,seconds);
while((ClawMotor.velocity(rpm)>0)){
}
}
Clawmotor.stop();
}
have you tried:
int main(){
Clawmotor.spin(forward);
wait(.2,seconds);
while((Regular.velocity(rpm)<0)){
Clawmotor.stop();
wait(1,seconds);
Clawmotor.stop();
wait(.2,seconds);
while((ClawMotor.velocity(rpm)>0)){
}
}
Or are you implying that the “run button” is an actual button you press that is connected to the three wire port on the brain?