To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcx.legosOpen lugnet.robotics.rcx.legos in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / legOS / 3553
3552  |  3554
Subject: 
Remote Message Buttons
Newsgroups: 
lugnet.robotics.rcx.legos
Date: 
Mon, 8 Dec 2003 05:34:56 GMT
Viewed: 
3930 times
  
Hello,

Anyone had problems getting the message 1,2,3 buttons working with brickOS?
All other remote buttons are working.

I am using v0.2.6.10.

I looked through the kernel and includes, it looks like in lr_process(), the
lr_keys gets checked vs. lr_curkeys, if they are not equal, the callback ( I
define ) gets called, if they are equal, nothing is done ( other than
assigned lr_curkeys to lr_keys.

lr_keys is a parameter that is passed into lr_process(), from lr_thread(),
where lr_keys is assigned lr_data, if shutdown is not requested and the
wait_event has expired lr_data is assigned to lr_keys and lr_keys is passed
to lr_process.

From what I have looked at so far, either the wait_event is not fulfilled
when I press the message 1,2,3 buttons ( maybe they time out or something ).
Or they are not properly updated into lr_data...

Anyone run into this? Maybe it is something much simpler that I am not doing
correctly.

I'll lok deeper into it tomorrow, but just wanted to solicit the experts to
see if I am overlooking something simple ( which I am thinking is the
case ).

Thanks,
Rand



Message has 2 Replies:
  Re: Remote Message Buttons
 
(...) I just use the standard IR message stuff from BrickOS. They are normal messages, so this works just fine. Here are some lines of code: (I think it's in lnp.h) #include <sys/lnp.h> ... clear_msg(); ... if (msg_received != 0) my_message_value = (...) (21 years ago, 8-Dec-03, to lugnet.robotics.rcx.legos)
  Re: Remote Message Buttons
 
(reviving an old thread...) (...) I have exactly the same problem. I receive every keys except the three message keys (see sample code below - the final target will be to use the remote to control several motors on several RCX). Any idea ? Thanks in (...) (20 years ago, 1-Sep-04, to lugnet.robotics.rcx.legos)

4 Messages in This Thread:


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

Custom Search

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