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.