
Hazbot
Australia
Asked
— Edited
Hi all. Like Moviemaker, I'm trying to work out the best script for the robot to avoid obstacles. Presently Bob roams around but now and then crashes into things. Simple Easy-Builder code would be great. Bobs tank treads have turned him into a stubborn sumo-pusher.
There must be a cool way of controlling Radar and Ping via a connection to a script run - ie Robot runs autonomous then follows an EZ script (if Ping distance is too short - then reverses back a set distance). I'm currently studying your script radar example - Ping_wait command which looks like the go but I'm not sure how to then tell Bob to reverse
ping_wait(d15,d16,lower,155)
# sensor stops
reverse(100)
..sorry but I am a primitive at this stuff.Any guidance appreciated.
Cheers
What I do Know that what every you put in the bracket, 1000=1sec,2000=2sec,3k-3sec,4k-4sec etc.
So,reverse(1000) go backward for 1 sec.
Hope that this helped.