|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#3
|
||||
|
||||
|
What types of switches are you using, and how are they connected to the RC?
-They are 2 position switches, on and off. Each switch has one connection to a digital input pin and the other goes to a common digital input ground. Does the box you made pinout with a multimeter the way that you think it should? -This was tried, everything worked as it should Does a debug statement showing the states of the switches show what you expect. -I have no idea how debug works What code are you using to try to switch programs? -I was hoping a simple IF THEN in the autonomous section of code would perform this task example: counter var word counter=0 IF auton mode = 1 THEN select counter IF rc_sw1=1 THEN start_left: IF rc_sw2=1 THEN start_right: 'Starting on left side of field start_left: (left auto program here) goto imdone: 'Starting on right side of field start_right: (right auto program here) goto imdone: ELSE 'Resume Human Control imdone: |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| 2-week FIRST summer program @ WPI | ColleenShaver | General Forum | 20 | 31-05-2009 03:02 |
| Fried program slots? | Jeff Waegelin | Programming | 18 | 19-03-2003 18:08 |
| Ahh! Program trick confusing! | archiver | 2001 | 9 | 24-06-2002 02:26 |
| Credits for FIRST program. | archiver | 2000 | 6 | 24-06-2002 00:16 |
| An invitation for HS Juniors | archiver | 2000 | 0 | 23-06-2002 22:51 |