Go to Post A clean pit is a happy pit, a clean pit is a controlled pit, a clean pit is a safe pit. - DjAlamose [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #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)
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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


All times are GMT -5. The time now is 04:25.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi