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 / 2271
2270  |  2272
Subject: 
Re: multiplexor and legOS
Newsgroups: 
lugnet.robotics.rcx.legos
Date: 
Sun, 3 Feb 2002 21:09:18 GMT
Viewed: 
2121 times
  
well anyone who looked at the code I attached may have notcied that I had one
of the msleeps commented out.  Oops, with this now uncommented I at least see
the second and third light sensors pulse on, but only for an extremely short
time.  Suring the 1s sleep that follows selecting the port it is the 1st light
sensor that is always lit.  Any thoughts would still be appreciated, if/when I
figure it out I'll be sure to post what I was doing wrong.  I've now got a
rotation sensor hooked up to a regular sensor port and am using it to vary the
pulse length :)

mark



Message has 1 Reply:
  Re: multiplexor and legOS
 
(...) Don't ask me for a cite, but I seem to remember something about msleep only having 20ms granularity. If that's the case, your msleep(10) is either not sleeping at all or is sleeping 20ms, either one of which could cause problems. I'd suggest (...) (23 years ago, 4-Feb-02, to lugnet.robotics.rcx.legos)

Message is in Reply To:
  multiplexor and legOS
 
Does anyone have expierence using the active multiplexor sold by www.mindsensors.com with legOS? If you are not farmiluar with this multiplexor it is really cool as it lets you multiplex three active sensors on one port. You tell the mux which "sub" (...) (23 years ago, 2-Feb-02, to lugnet.robotics.rcx.legos)

19 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