View Single Post
  #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.