View Single Post
  #1   Spotlight this post!  
Unread 02-05-2007, 02:10
Ben Mitchell Ben Mitchell is offline
Registered User
no team
 
Join Date: Jun 2001
Rookie Year: 2000
Location: Bridgewater, NJ
Posts: 566
Ben Mitchell has a reputation beyond reputeBen Mitchell has a reputation beyond reputeBen Mitchell has a reputation beyond reputeBen Mitchell has a reputation beyond reputeBen Mitchell has a reputation beyond reputeBen Mitchell has a reputation beyond reputeBen Mitchell has a reputation beyond reputeBen Mitchell has a reputation beyond reputeBen Mitchell has a reputation beyond reputeBen Mitchell has a reputation beyond reputeBen Mitchell has a reputation beyond repute
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)