Thread: Dashboard?
View Single Post
  #18   Spotlight this post!  
Unread 12-07-2003, 01:04
rbayer's Avatar Unsung FIRST Hero
rbayer rbayer is offline
Blood, Sweat, and Code
no team (Teamless Orphan)
 
Join Date: Mar 2002
Rookie Year: 2001
Location: Minnetonka, MN
Posts: 1,087
rbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of light
Send a message via AIM to rbayer
First off, excellent idea. One thing that many people don't seem to know is that there is a variable called OUTH that is byte-sized and includes out8-out15. With it, you can clean up the code a lot, so that all you need is:

SELECT p3_wheel/16
CASE 0 to 15: outh=pwm1
case 16 to 31: outh=pwm2
...
ENDSELECT
__________________
New C-based RoboEmu2 (code simulator) available at: http://www.robbayer.com/software.php