|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Variable question (solved)
OK i'm going to be sitting by my computer refreshing every 30 seconds checking for reply
In file user_routines.c, under /***DEFINE USER VARIBLES AND INITIALIZE THEM HERE ***/ I added: static unsigned int bob = 2; ------------------------------------------------------------ ------------------------------------------------------------ Now under the: Void Default_Routine(void) { if(bob == 2 && p1_sw_trig){bob = 0;} if(bob == 0 && p1_sw_trig){bob = 1;} if(bob == 1 && p1_sw_trig){bob = 0;} } ------------------------------------------------------------ ------------------------------------------------------------ Before I click on the trigger, I get the value 2 for bob... Click on it once, I get 0 click on it again I get 0(it's suppose to change to 1) WHAT AM I DOING WRONG!?!!? Please help! Last edited by Calvin : 03-02-2006 at 22:26. |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| VEX programming | Gene F | Programming | 14 | 08-08-2006 22:21 |
| Printf Oddity : Programming Challange | DarkAlex | Programming | 7 | 21-03-2005 08:12 |
| have a question to ask about Double Solenoids to one spike programming | davelu | Programming | 3 | 22-02-2005 09:52 |
| General programming question | mikesown | Programming | 1 | 07-02-2005 16:09 |
| 'Fix It Window' and Programming.... | JMac | Programming | 19 | 25-01-2005 18:57 |