FIRST Robot Simulator - Initialize.tcl

This following is a starting point for your code. You can customize your version as needed.

     # @(#) $Header : Initialize.tcl,v $
     
     # -------------------------------------------------------------------
     # The executable variable needs to show the name of the C executable
     # produced when you compile the robot code for execution on your
     # local computer.
     
     # The following is Linux style syntax.  It specifies the executable
     # as "CCode" in the current directory.
     
       set executable "./CCode"; # <<<<<<<<<<<<<<<
     
     # The following is Windoze style syntax.  It specifies the executable
     # as "CCode" at the top level of the C: drive
     
     #  set executable "C:CCode"; # <<<<<<<<<<<<<<<
     
     # -------------------------------------------------------------------
       set automode 80
       set oi_analog01 127
       set oi_analog02 127
       set oi_analog03 127
       set oi_analog04 127
       set oi_analog05 127
       set oi_analog06 127
       set oi_analog07 127
       set oi_analog08 127
       set oi_swA 0
       set oi_swB 0
       set rc_ana_in01 127
       set rc_ana_in02 127
       set rc_ana_in03 127
       set rc_ana_in04 127
       set rc_ana_in05 127
       set rc_ana_in06 127
       set rc_ana_in07 127
       set rc_ana_in08 127
       set portbb 0
       set portcb 0
       set porthb 0
       set portjb 0
       set joy_top4 0
       set joy_top3 0
       set joy_top2 0
       set joy_top1 0
       set joy_trig4 0
       set joy_trig3 0
       set joy_trig2 0
       set joy_trig1 0
       set joy_aux42 0
       set joy_aux41 0
       set joy_aux32 0
       set joy_aux31 0
       set joy_aux22 0
       set joy_aux21 0
       set joy_aux12 0
       set joy_aux11 0
       set pwm01 126
       set pwm02 126
       set pwm03 126
       set pwm04 126
       set pwm05 126
       set pwm06 126
       set pwm07 126
       set pwm08 126
       set pwm09 126
       set pwm10 126
       set pwm11 126
       set pwm12 126
       set pwm13 126
       set pwm14 126
       set pwm15 126
       set pwm16 126
       set latb 126
       set latc 126
       set lath 126
       set latj 126
  


Last modified 11 Dec 2006
http://brown.armoredpenguin.com/~abrown/contact.html
http://brown.armoredpenguin.com/~abrown/first/first2006/Scalawags/Simulator2006/Initialize.html