| | 
      |   |   
            | Subject: 
 | Yet another Q: IR messages 
 |  
            | Newsgroups: 
 | lugnet.robotics.rcx.nqc 
 |  
            | Date: 
 | Thu, 29 Mar 2001 13:50:22 GMT 
 |  
            | Reply-To: 
 | tobias.moller@telia.SPAMCAKEcom 
 |  
            | Viewed: 
 | 3330 times 
 |  |  |  
 | 
 |  | I can't figure out how to use the IR commands. I've tried, read a bit in the documentation, but still have no clue.
 
 I'd like to know how to:
 
 a) Send a message (and decide what message it should be)
 
 and
 
 b) learn how to recieve messages
 
 Thanks in advance.
 
 --Tobias
 
 |  |  |  
 
 Message has 3 Replies:
 
  |  |  | Re: Yet another Q: IR messages 
 | 
 |  | Hi Tobias, this could look something like this for example : int global_message; // place to store and read messages for every task task main() { start Read_Messages; // start Receive_Message Task while(true) { switch (global_message) { case 1 : (...)   (25 years ago, 29-Mar-01, to lugnet.robotics.rcx.nqc) 
 |   |  |  | Re: Yet another Q: IR messages 
 | 
 |  | To send a message use the following: SendMessage(<variable> or <number>); The variable must be of integer type between 1 - 255 The number must be between 1 - 255 To read a message from the IR port do <variable> = Message(); This will put whatever (...)   (25 years ago, 29-Mar-01, to lugnet.robotics.rcx.nqc) 
 |  6 Messages in This Thread:
 
    
    
      
     
 
      Entire Thread on One Page:
      
        Nested: 
        All | Brief | Compact | Dots
        Linear: 
        All | Brief | Compact
 | 
 | 
 | 
 |