To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcxOpen lugnet.robotics.rcx in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / 2110
2109  |  2111
Subject: 
Re: Remote control under linux
Newsgroups: 
lugnet.robotics.rcx
Date: 
Mon, 2 Jun 2003 21:26:49 GMT
Viewed: 
3401 times
  
Chris Phillips wrote:

In lugnet.robotics.rcx, Bapt Denaeyer wrote:


Oh chris I have a litle problem.

I want to execute the program 1 and it stop when I stop to send the message

Is there an other code to send to hand this progrma ?

nanobapt



I'm not sure I understand the question.  Are you saying that you want Program #1
to start when you press button [P1] and stop running when you release the
button?  This isn't how the remote works, but you could just have your program
send the [Stop] button code when you release the [P1] button to get this effect.
There is also a regular PC-to-RCX opcode (documented on MindStorms Internals)
that will stop the running program.

I'm not sure if that answers your question.  Why would you want to do that?

\-Chris.



No my program stop when I stop to send the code to run the #1 program .....

So I want to keep it work :\

nanobapt



Message has 1 Reply:
  Re: Remote control under linux
 
(...) Looking at your program, I see that you use code like the following to "run" a program: else if(data == P1) code0=0x91+alt; code1=0x00; send(2); This will only do half of the job. This is a "Set Program Number" opcode, which is the equivalent (...) (21 years ago, 3-Jun-03, to lugnet.robotics.rcx, FTX)

Message is in Reply To:
  Re: Remote control under linux
 
(...) I'm not sure I understand the question. Are you saying that you want Program #1 to start when you press button P1 and stop running when you release the button? This isn't how the remote works, but you could just have your program send the Stop (...) (21 years ago, 28-May-03, to lugnet.robotics.rcx, FTX)

6 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