View Single Post
  #7   Spotlight this post!  
Unread 16-02-2009, 16:25
rhoads2234's Avatar
rhoads2234 rhoads2234 is offline
Registered User
AKA: Erin
FRC #2234
Team Role: Programmer
 
Join Date: Jan 2007
Rookie Year: 2007
Location: PA
Posts: 80
rhoads2234 will become famous soon enough
Re: Joystick Buttons?

your set speed to 0 would be in the false statement of the interior case statement.
This would make the motor stop when no buttons are pressed but if one or the other is, it will send that value.
-so I will walk you through it (I don't have Labview on this computer)

Open Motor
get button 5
___Case statement
_____true
________set speed to Right Crab speed inverse
_____false
________get button 4
________Case Statement
__________true
_____________set speed to Right Crab speed
__________false
_____________set speed to 0
__________________
ALWAYS a mechanical problem!

Last edited by rhoads2234 : 16-02-2009 at 16:27. Reason: make the code clearer
Reply With Quote