To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcx.robolabOpen lugnet.robotics.rcx.robolab in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / ROBOLAB / 336
    Waiting for more than one event —Alan
   What is the best way of waiting for more than one type of event? I want to turn on a motor and run it for 5 seconds or until the tough sensor is pressed, whichever comes first. This seems like such a basic problem that I'm quite sure there must be a (...) (20 years ago, 29-Aug-04, to lugnet.robotics.rcx.robolab)
   
        Re: Waiting for more than one event —Edwin Pilobello
   (...) You could setup two concurrent events or do something like : Loop until 5 seconds is up If Touched, exit loop (20 years ago, 29-Aug-04, to lugnet.robotics.rcx.robolab)
 

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR