Go Down

Topic: Adding to the ROBOREALM sketch..... (Read 432 times) previous topic - next topic

query

Hey guys and girls,
I have just found ROBOREALM which I'd like to use for a future project. I would like to add the ULTRASONIC library to the sketch so that I can get a read of distance in roborealm. As I'm a little slow it seems, I cant work out where to add the function to ping the SR04 so that it doesnt screw up what is already happening.
This is the sketch...
http://www.roborealm.com/help/RoboRealm_Arduino_Mega/RoboRealm_Arduino_Mega.pde

I think all I need to do is set pin x high for delay(x) and measure the time to getting an answer, but where do I put this?????


Thanks for your time.

PS. roborealm is very cool. Worth a look if you want to control a robot with live video feed, tracking etc.

fiddler

Properly more appropriate to ask in the ROBOREALM forum

It's always hard to decipher arrays without nice commenting etc

But, of course, just try and modify the code and see what happens :-)

query

Had a bit of a go at adding code. Didnt break anything. But didnt do anything either....

AWOL

Quote
Had a bit of a go at adding code.

Thanks for letting us know.
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

Go Up