View Single Post
  #2   Spotlight this post!  
Unread 02-05-2007, 02:22
Unsung FIRST Hero
miketwalker miketwalker is offline
Robot Lifeguard
FRC #1902 (Exploding Bacon)
 
Join Date: Dec 2001
Rookie Year: 2002
Location: Orlando, FL
Posts: 878
miketwalker has a reputation beyond reputemiketwalker has a reputation beyond reputemiketwalker has a reputation beyond reputemiketwalker has a reputation beyond reputemiketwalker has a reputation beyond reputemiketwalker has a reputation beyond reputemiketwalker has a reputation beyond reputemiketwalker has a reputation beyond reputemiketwalker has a reputation beyond reputemiketwalker has a reputation beyond reputemiketwalker has a reputation beyond repute
Send a message via AIM to miketwalker
Re: Vex Programming Question

Could you possibly have your if loops in a certain order where if one's being pressed the next loop is overwriting your command output and setting the value back to 127 (neutral)?

For example, to show my logic:
if (button1) : pwm=255
if (button2): pwm=0
else: pwm = 127

In the above, even if button 1 is pressed your button 2 code is overriding that "255" command since the final value is essentially a 127 since button 2 isn't pressed.
__________________
Chopsaw? Chopsaw.