|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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? |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Programming Vex w/ MPLab | dababyjebus | FIRST Tech Challenge | 27 | 25-04-2008 09:11 |
| VEX programming | Gene F | Programming | 14 | 08-08-2006 22:21 |
| Programming VEX Controller | HRobotics | Programming | 4 | 21-03-2006 23:25 |
| Vex like programming? | Morenoh149 | Programming | 2 | 09-07-2005 22:32 |
| Vex Programming | foobert | FIRST Tech Challenge | 3 | 24-06-2005 01:09 |