multiple NXT both way BT communication
Posted: 13 Apr 2012, 08:03
I write this on behalf of my wife who doesn't have time to do it herself today. (I just build, my wife programs (in lejos))
We have 4 robots, red, blue, green and yellow. They wander around and when bumping into the wall they will turn. No problems so far.
Now if red sees blue then red should send a message to blue to turn around and face red. No problem programming red.
Blue should wander around also and is listening for a message from red. This should be possible but I think my wife had some problems with doing a task while waiting for a signal from red. But this should be solvable.
Now the the reverse should also be possible, red can be seen by blue and signaled to turn around. Now this complicates things, red has a main task (wandering around) while looking if blue is around and listening if blue has something to say. Can you run these 3 things paralel to each other?
And then the next step is putting green and yellow into the mix...
Somebody proposed to use a computer as message server but I (with little programing experience) don't see a lot of benefits in this.
Any smart ideas?
We have 4 robots, red, blue, green and yellow. They wander around and when bumping into the wall they will turn. No problems so far.
Now if red sees blue then red should send a message to blue to turn around and face red. No problem programming red.
Blue should wander around also and is listening for a message from red. This should be possible but I think my wife had some problems with doing a task while waiting for a signal from red. But this should be solvable.
Now the the reverse should also be possible, red can be seen by blue and signaled to turn around. Now this complicates things, red has a main task (wandering around) while looking if blue is around and listening if blue has something to say. Can you run these 3 things paralel to each other?
And then the next step is putting green and yellow into the mix...
Somebody proposed to use a computer as message server but I (with little programing experience) don't see a lot of benefits in this.
Any smart ideas?