To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.spyboticsOpen lugnet.robotics.spybotics in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / Spybotics / 378
377  |  379
Subject: 
Re: Sending/receiving messages
Newsgroups: 
lugnet.robotics.spybotics
Date: 
Tue, 11 Jan 2005 23:48:43 GMT
Viewed: 
7284 times
  
Gabe,

I think you want something like this:

// first spybot
if (x==1)
{
   SendMessage(SORT_NUMBER);
   while (Message()!=SORT_CONFIRM);
   start follow_line();
}

---

// second spybot
if (Message()==SORT_NUMBER)
{
   //send confirmation
   SendMessage(SORT_CONFIRM);
   start sorting();
}

And, I think there's a ClearMessage() function, that resets the last received
message to 0

Steve



Message has 1 Reply:
  Re: Sending/receiving messages
 
(...) Unfortunately, the Spybot does not support the Message() or SendMessage(n) functions. The RCX mailbox source (which is what is read or written to via these functions) is the VLL source in the Spybot. You can, however, use other functions to (...) (20 years ago, 12-Jan-05, to lugnet.robotics.spybotics)

Message is in Reply To:
  Sending/receiving messages
 
Hi guys, I have a project where I am using 2 spybots in one robot. I need one spybot to send a "GO" message to the other and to wait until it gets confirmed and do an action together. I have tryed to understand what I read in the help file but I (...) (20 years ago, 11-Jan-05, to lugnet.robotics.spybotics)

3 Messages in This Thread:

Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR