Go to Post ...or it might be good to avoid doing stupid things like smashing a thin metal casing with a steel hammer... - Cory [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
  #6   Spotlight this post!  
Unread 09-11-2007, 14:04
youngWilliam14's Avatar
youngWilliam14 youngWilliam14 is offline
Team 461 Electrician and Operator
AKA: Will Crabtree
FRC #0461 (Westside Boiler Invasion)
Team Role: Electrical
 
Join Date: Jan 2007
Rookie Year: 2006
Location: West Lafayette, IN
Posts: 184
youngWilliam14 has much to be proud ofyoungWilliam14 has much to be proud ofyoungWilliam14 has much to be proud ofyoungWilliam14 has much to be proud ofyoungWilliam14 has much to be proud ofyoungWilliam14 has much to be proud ofyoungWilliam14 has much to be proud ofyoungWilliam14 has much to be proud of
Send a message via AIM to youngWilliam14
Re: programing the vex optical shaft encoder

ok now i have another problem:

Code:
while (swerve == 0)
{
      Tank4 (0 , 2 , 2 , 3 , 4 , 1 , 2 , 1 , 0 , 1 , 0);
       swerve = GetRxInput (1 , 5);
}
the variable 'swerve' is set to 0 when i press the lower ch. 5 button. i'm still holding the button down when i get to this part of the code, but it skips the while loop and goes right to trying to turn the wheels back to zero. does anyone know why the loop gets skipped, even though the value of 'swerve' is still 0? the only reason why the program gets to that point is because it's allredy checked to see if the button is being pressed
__________________

"C.N.C." lyrics/"Driving on Regolith" lyrics
Let's all go nuts! Robots! Robots!--Team 461 chant

Last edited by youngWilliam14 : 09-11-2007 at 14:07.
 


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
Problem using VEX shaft encoder jskene Programming 15 28-10-2007 22:33
VEX Shaft Encoder Kit jeffmorris FIRST Tech Challenge 1 19-05-2006 12:23
VEX Optical Shaft encoders in FRC sanddrag FIRST Tech Challenge 8 04-10-2005 07:52
Hollow Shaft optical encoders magical hands Robotics Education and Curriculum 0 03-02-2005 22:56
Rotary Encoder (optical etc.) Gary C Technical Discussion 4 16-01-2005 18:23


All times are GMT -5. The time now is 18:17.

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