Thread: Swapping codes
View Single Post
  #3   Spotlight this post!  
Unread 21-02-2003, 21:35
ttedrow's Avatar
ttedrow ttedrow is offline
Herding electrons
AKA: Tim Tedrow
FRC #0281 (EnTech)
Team Role: Mentor
 
Join Date: Jan 2002
Rookie Year: 2000
Location: Greenville, SC
Posts: 165
ttedrow will become famous soon enoughttedrow will become famous soon enough
Remember, during the human player period, operator will NOT be allowed to touch the OI.

The simple solution is to put a toggle switch on your robot and wire it to a digital input. Then some simple code and you are done.


RigthTurn VAR rc_swB.bit4 '13 Autonomous Mode Turning Direction: 1=Right, 0=Left


IF RigthTurn THEN
'Do Right turn code
ELSE
'Do Left turn code
ENDIF

I hope this helps

Tim Tedrow
__________________
Sr. Design Engineer
Caterpillar Inc.
Greenville, SC

KD4EGM

FRC 281 Greenvillains
Infected with the FIRST virus in 2000

Yes, Chute Door!!!