|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
Can't get auto mode to run with OI switches
Hey all..
I have a potentiometer with detents that is mounted on the oi controller. I have no idea whats going on.. I set up a static int newautoselect inside user_control.h, int currentauto; unsigned int autopos; unsigned int temp_autopos; int autocount; autopos = p2_wheel; autocount ++; if(autocount >= 26) { autopos = currentauto; } if(currentauto > 20 | currentauto < 40) { newautoselect = 1; } else if(currentauto > 50 | currentauto < 60) { newautoselect = 2; } else if(currentauto > 100 | currentauto < 120) { newautoselect = 3; } else if(currentauto > 130 | currentauto < 150) { newautoselect = 4; } else if(currentauto > 160 | currentauto < 190) { newautoselect = 5; } else if(currentauto > 200 | currentauto < 250) { newautoselect = 6; } why doesnt auto mode pick this up? |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| A statistical analysis of the "autonomous advantadge" | Greg Marra | General Forum | 51 | 25-03-2006 21:09 |
| Favorite Autonomous Mode | George A. | General Forum | 49 | 12-05-2005 15:33 |
| I fail to see the point.. | randomperson | Programming | 14 | 27-03-2003 11:38 |
| picking auto program | Mike375 | Programming | 19 | 03-03-2003 15:47 |
| Need help with 255 Variable | Joseph F | Programming | 18 | 26-02-2002 14:49 |