|
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.
|