Pages: [1]   Go Down
Author Topic: Adding to the ROBOREALM sketch.....  (Read 346 times)
0 Members and 1 Guest are viewing this topic.
New Zealand
Offline Offline
Newbie
*
Karma: 0
Posts: 9
Learn.... always learn
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

NZ
Offline Offline
Jr. Member
**
Karma: 1
Posts: 84
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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 :-)
Logged

New Zealand
Offline Offline
Newbie
*
Karma: 0
Posts: 9
Learn.... always learn
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 238
Posts: 24347
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
Had a bit of a go at adding code.
Thanks for letting us know.
Logged

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

Pages: [1]   Go Up
Jump to: