|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#2
|
|||||
|
|||||
|
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. |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
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 |