|
Solution
You can't test your controls during autonomous control, because they default to 0/127. Instead you must test any autonomous selection switch in your non-autonomous code and then save this value in a "dummy variable" for the autonomous period.
ie....
if automode =0
if switch = 0
dummyvar = 0
else
dummyvar = 1
if automode = 1
if dummyvar = 0
'Box mode
if dummyvar = 1
'Ramp Mode
Something like this should solve the problem
__________________
www.team102.com
2000 National Finalists
2003 J&J Mid-Atlantic Regional Winners
2003 BattleCry Best Autonomous
Last edited by K. Skontrianos : 03-07-2003 at 11:11 PM.
|