View unanswered posts | View active topics It is currently Fri Sep 19, 2014 3:52 pm






Reply to topic  [ 3 posts ] 
Multi-Robot Programming 
Author Message
Moderator
Moderator
User avatar

Joined: Tue Dec 21, 2010 1:38 pm
Posts: 24
Post Multi-Robot Programming
I've been looking through the Multi-Robot wiki, specifically, the Lesson Curriculum page and I am having a bit of trouble understanding Lesson 6, "Sequence of Strings."

1)
The lesson focuses on creating a "Start" and "Stop" sequence commands, but doesn't give an example so I was wondering how one could define that.

2)
Also, after sending multiple strings to another robot, how many strings can the second robot "hold" before it overwrites saved strings. This question is related to the first in that if Robot1 tells Robot2 that "This is the start" and then begins to send a list of commands such as forwardForX encoder clicks, turnLeft, turnRight, .... and the "This is the end of the sequence." How many commands will Robot2 "remember" and will it execute those commands in the order they were given and how?

Thank you

_________________
Eric Smalls
About Me: http://www.stanford.edu/~esmalls/
My Projects: http://www.ericsmalls.com/p/my-projects.html


Thu Dec 22, 2011 12:01 pm
Profile WWW
Moderator
Moderator
User avatar

Joined: Tue Dec 21, 2010 1:38 pm
Posts: 24
Post Re: Multi-Robot Programming
Problems Solved.
See Lesson 9: String Array:
http://www.robotc.net/firewiki/index.ph ... ring_Array

Quote:
The lesson focuses on creating a "Start" and "Stop" sequence commands, but doesn't give an example so I was wondering how one could define that.


In order to create start and stop commands we can use a while loop in combination with a String Array.

Quote:
Also, after sending multiple strings to another robot, how many strings can the second robot "hold" before it overwrites saved strings. This question is related to the first in that if Robot1 tells Robot2 that "This is the start" and then begins to send a list of commands such as forwardForX encoder clicks, turnLeft, turnRight, .... and the "This is the end of the sequence." How many commands will Robot2 "remember" and will it execute those commands in the order they were given and how?


Once we collect the strings via the String Array, we can utilize a For-loop to run back through the collected information in its correct order.

_________________
Eric Smalls
About Me: http://www.stanford.edu/~esmalls/
My Projects: http://www.ericsmalls.com/p/my-projects.html


Tue Apr 24, 2012 4:25 pm
Profile WWW
Rookie

Joined: Wed Jan 22, 2014 4:36 pm
Posts: 2
Post Re: Multi-Robot Programming
I would like some help with a problem.

I am doing a project to program 2 NXT Robots via Bricx, one master, one slave.

I want to write a program using direct command for the master to comunicate with the slave via Bluetooth.

I can make the sensors work on the master however I can't get the slave's sensors to read anything.

If you would be able to help or point me in the direction of where i could get help with this project it would be much appreciated.

Regards,

Gareth


Wed Jan 22, 2014 4:44 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 3 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  



Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.