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 / 3556
3555  |  3557
Subject: 
Re: Remote Message Buttons
Newsgroups: 
lugnet.robotics.rcx.legos
Date: 
Tue, 9 Dec 2003 10:36:05 GMT
Viewed: 
4177 times
  
That doesn't seem to help, doing things that way actually made the Stop and
Beep buttons function as Stop and Beep. I was hoping to have all the buttons
"raw" messages available to remap their functionality. I think I know how to
modify the kernel code to do that now. If it works I will let you know.

Rand

"Steve Hassenplug" <Hassenplug@mail.com> wrote in message
news:HpKwzw.13AE@lugnet.com...
In lugnet.robotics.rcx.legos, Rand Krakora wrote:
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,

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 = lnp_rcx_message;
...
send_msg(send_message_value);
...


Steve



Message is in Reply To:
  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)

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