To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcx.nqcOpen lugnet.robotics.rcx.nqc in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / NQC / 141
140  |  142
Subject: 
Re: Tasks vs. program slots
Newsgroups: 
lugnet.robotics.rcx.nqc
Date: 
Sat, 18 Sep 1999 03:45:37 GMT
Viewed: 
2307 times
  
In article <slrn7u5l8e.245.mattdm@jadzia.bu.edu>, mattdm@mattdm.org wrote:

Dave Baum <dbaum@spambgoneenteract.com> wrote:
There is no known programmatic way of transferring control from one
program to another.

This is why it might be nice to get the remote control reverse engineered --
we may discover a way.

The remote control always sends the same sort of packet:

d2 xx yy

where xxyy is a sixteen bit bit-field indicating what features should be
activated:

xxyy
0001 Message 1
0002 Message 2
0004 Message 3
0008 Motor A Forward
0010 Motor B Forward
0020 Motor C Forward
0040 Motor A Backward
0080 Motor B Backward
0100 Motor C Backward
0200 Run Program 1
0400 Run Program 2
0800 Run Program 3
1000 Run Program 4
2000 Run Program 5
4000 Stop Program
8000 Beep

These can be ORed together.  I don't know if all combinations are legal,
but you can certainly combine the motor options together.

The remote sends multiple copies of the packet while the button is held
down, then sends a d20000 when the button is released.

Unfortunately, I think these codes are ignored when encountered within a
program.  I tried the one to run program 5 from within an NQC program:

asm { 0xd2, 0x20, 0x00 };

It had no effect.


Dave Baum

--
reply to: dbaum at enteract dot com



Message has 2 Replies:
  Re: Tasks vs. program slots
 
(...) Too bad! So, the next thing I wonder is if there's any way to get an RCX to _send_ these packets to another RCX... (25 years ago, 18-Sep-99, to lugnet.robotics.rcx.nqc)
  Re: Tasks vs. program slots
 
Hello Dave, First, let me thank you for NQC ... you've made my RCX playing tremendously more rewarding. I've been wanting to use a Sharp IR receiver to demodulate the signal from a LEGO remote control, and then a PIC to decode the rx output for use (...) (25 years ago, 18-Sep-99, to lugnet.robotics.rcx.nqc)

Message is in Reply To:
  Re: Tasks vs. program slots
 
(...) This is why it might be nice to get the remote control reverse engineered -- we may discover a way. (25 years ago, 17-Sep-99, to lugnet.robotics.rcx.nqc)

14 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