|
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!!!
|