random movements?
aznstormin
Posts: 3
I am doing a project using the boebot, and I am wondering how to make it move randomly - just in general, how to make the bot do random movements. if there is code, where can i get it?
Comments
· I'm not aware of any RANDOM code, but if you understand how the RANDOM command works you could use it to affect the BOE-Bots direction in one of two ways.· First you could directly randomize the PULSOUT values going to the servo motors.· That would be interesting (the effect).· Another thing is the forward, backup and turn routines could be randomly called, based on a random number.· Just a couple of ideas.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com