View Single Post
  #3   Spotlight this post!  
Unread 17-02-2003, 17:57
Mike375's Avatar
Mike375 Mike375 is offline
Registered User
#0375 (Robotic Plague)
 
Join Date: Sep 2001
Location: New York City
Posts: 46
Mike375 will become famous soon enough
Send a message via AIM to Mike375
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: