|
Vex Programming Question
I'm sort of in a crunch here, I'm having trouble getting this code to work. I'm not a programmer and I sort of need this program to run by 9:00am. It is now 2am.
I need to use a vex controller along with 4 vex bumper buttons and 4 vex servos.
When button 1 is pressed, servo 2 needs to rotate fully clockwise.
When button 2 is pressed, servo 2 needs to rotate fully clockwise.
Etc.
For some reason, it is not recognizing my bumper - it does nothing when i turn it on.
This is probably really easy and I'm missing something really basic here. If someone could help me out I would be forever grateful.
What I did so far is assign each bumper an unsigned variable, and made if statements such that
if bumper 1 ==0 then setservo (1, 255)
It seems so simple yet it is failing to work. What am I doing wrong and can someone give me an example of how to do this?
__________________
Benjamin Mitchell
Vex Robotics Competition team advisor (4 high school teams)
|