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 / 495
494  |  496
Subject: 
Re: infrared remote control of LEGO trains using NCQ and RCX
Newsgroups: 
lugnet.robotics.rcx.nqc, lugnet.trains
Date: 
Wed, 22 Mar 2000 04:24:35 GMT
Viewed: 
2943 times
  
Thanks Dan.  Actually, I just came up with this myself but I added a float line
as follows to stop it a little more gracefully.

if (__speed == 0) {Float(OUT_A);}


I'm pretty pleased with the results now.  Hopefully I'll be able to avoid those
train collisions I'm so known for.

Ben Fleskes

In lugnet.robotics.rcx.nqc, Dan Boger writes:
Ben Fleskes wrote:

you never check if your speed is 0 in this task - IMO, you need to add:

if (__speed == 0) {Off(OUT_A)};

(I'm guessing here, since I haven't really done any NCQ myself yet. :/

Dan



Message is in Reply To:
  Re: infrared remote control of LEGO trains using NCQ and RCX
 
(...) you never check if your speed is 0 in this task - IMO, you need to add: if (__speed == 0) {Off(OUT_A)}; (I'm guessing here, since I haven't really done any NCQ myself yet. :/ Dan (25 years ago, 22-Mar-00, to lugnet.robotics.rcx.nqc, lugnet.trains)

84 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