I like auton_mode better,
Code:
' auton_mode VAR PB_mode.bit6
' PB_MODE = the first bit in the second byte on initialization
'Note: its a byte, but on initialization its the first BIT to turn on/off
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++
' Manipulation
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++
if auton_mode <> ON then skipcontrol
gosub sub_automation
skipcontrol:
if auton_mode <> OFF then skipautomation
gosub sub_setRelays
gosub sub_tankDrive
' gosub sub_balance 'balances the robot uses sensor3
'eduRobot with yaw rate sensor + 2 servos
skipautomation:
This is cut from our program (Team 691)