Thread: Bored?
View Single Post
  #1   Spotlight this post!  
Unread 23-06-2002, 23:01
archiver archiver is offline
Forum Archival System
#0047 (ChiefDelphi)
 
Join Date: May 2001
Location: Pontiac, MI
Posts: 21,214
archiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond repute
Bored?

Posted by Tony K.

Student on team #292, PantherTech, from Western High School and DaimlerChrysler.

Posted on 2/4/2000 8:25 AM MST



If you're bored, and your robot just hasn't been listening to you today, try this:

'Add this to the top
p1_y VAR WORD
p2_y VAR WORD

'Add this to the 'Custom Code' section of the robot code:

RANDOM p1_y Min 0 Max 254
RANDOM p2_y Min 0 Max 254

(all this assuming your drive wheels are hooked up to pwm's 1 and 2)

and in the serout...
p1_y.lowbyte, p2_y.lowbyte

Now, either make sure your robot is up on blocks and press reset!

I'd *never* actually recommend doing this... just for *virtual* fun... :^)
__________________
This message was archived from an earlier forum system. Some information may have been left out. Start new discussion in the current forums, and refer back to these threads when necessary.