View Single Post
  #5   Spotlight this post!  
Unread 06-01-2003, 17:29
rwaliany's Avatar
rwaliany rwaliany is offline
R
None #0691 (HartBurn)
Team Role: Programmer
 
Join Date: Jan 2003
Rookie Year: 2000
Location: http://www.hartrobot.com
Posts: 137
rwaliany will become famous soon enough
Autonomous Mode

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)
__________________
R