View unanswered posts | View active topics It is currently Thu Dec 12, 2013 11:51 pm

 Page 1 of 1 [ 2 posts ]
 Print view Previous topic | Next topic
Multi-Robot Programming
Author Message
Moderator

Joined: Tue Dec 21, 2010 1:38 pm
Posts: 24
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
My Projects: http://www.ericsmalls.com/p/my-projects.html

Thu Dec 22, 2011 12:01 pm
Moderator

Joined: Tue Dec 21, 2010 1:38 pm
Posts: 24
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
My Projects: http://www.ericsmalls.com/p/my-projects.html

Tue Apr 24, 2012 4:25 pm
Display posts from previous:  Sort by
 Page 1 of 1 [ 2 posts ]

#### Who is online

Users browsing this forum: No registered users and 1 guest

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

Search for:
 Jump to:  Select a forum ------------------ ROBOTC Applications    ROBOTC for LEGO MINDSTORMS       Third-party sensors    ROBOTC for CORTEX & PIC    ROBOTC for VEX IQ    ROBOTC for Arduino    Robot Virtual Worlds    Multi-Robot Communications    Issues and Bugs Competitions & Partners    CS2N Robot Virtual Worlds Competitions       VEX Toss Up 2013-2014       FTC Block Party! 2013-2014       2013 Robotics Summer Of Learning          VEX Toss Up Programming Challenge          FTC Ring It Up! Programming Challenge    Competitions using VEX - BEST, TSA, VEX, and RoboFest!    FTC Programming    RoboCup Junior and Other ROBOT Competitions    Robotics Merit Badge Robotics Discussions    General Discussions    Project Discussions International Forums    Spanish Forums       ROBOTC for MINDSTORMS       ROBOTC for VEX    French Forums       ROBOTC pour Mindstorms       ROBOTC pour IFI VEX    Japanese Forums （日本語のフォーラム） Off-Topic ROBOTC Forum & ROBOTC.net Suggestions/Feedback    ROBOTC Forums Suggestions/Comments    ROBOTC.net Suggestions/Comments       NXT Programming: Tips for Beginning with ROBOTC       VEX Programming: Tips for Beginning with ROBOTC