View unanswered posts | View active topics It is currently Tue Jun 18, 2013 1:33 am






Reply to topic  [ 2 posts ] 
Multi-Robot Programming 
Author Message
Moderator
Moderator

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

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
Display posts from previous:  Sort by  
Reply to topic   [ 2 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:  
cron



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