ROBOTC.net forums
http://www.robotc.net/forums/

Multi-Robot Programming
http://www.robotc.net/forums/viewtopic.php?f=58&t=3905
Page 1 of 1

Author:  ericsmalls [ Thu Dec 22, 2011 12:01 pm ]
Post subject:  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

Author:  ericsmalls [ Tue Apr 24, 2012 4:25 pm ]
Post subject:  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.

Author:  Gareth293 [ Wed Jan 22, 2014 4:44 pm ]
Post subject:  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

Author:  elizabeth.mabrey [ Wed Jan 21, 2015 12:56 pm ]
Post subject:  Re: Multi-Robot Programming

I wrote a small tutorial for my students - http://www.stormingrobots.com/prod/tutorial/wl.html.

Not sure what you meant your slave controller not reading sensors though . As far as reading sensors, it works identically the same way no matter it is a master controller or slave. I guess you meant bi-directional transfer? i.e. transferring data from the slave controller back to master ? It should work, I have a sample too, but it was written way back in 2009 or so. With the new implementation, I'll have to test that out again. However, is it what you need ?

Page 1 of 1 All times are UTC - 5 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/