To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.org.us.laflrcOpen lugnet.org.us.laflrc in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Organizations / United States / LafLRC / 334
333  |  335
Subject: 
Re: 3T
Newsgroups: 
lugnet.org.us.laflrc
Date: 
Fri, 3 Mar 2006 16:06:51 GMT
Viewed: 
1722 times
  
I'm not sure about the RCX, but with some languages, things like events, or
other tasks, will not start executing until the current task gives up the
processor.  (like in a wait)

Here's a suggestion that should avoid the delay...


In lugnet.org.us.laflrc, John Brost wrote:

program 3T{
// lots of variables declared
event scancomplete when scandone = 1
main {
   scandone = 0
   start scan
   wait until scancomplete
   stop scan
}
task Scan {

   if A = 0 { • ...
          set scandone = 1 // scandone variable is watched by an event
                           // when event fires scan task stops
      }
   }

*    If scandone = 0 {
     If B = 0 {
        //repeat same steps for B location
     }
   }
}


The 'Scan' task will quickly complete, and not make other changes to cx and cy.



Message is in Reply To:
  3T
 
Well, I've had some time on my hands, and being totally unhappy with my 3T robot I decided a re-build was in order. Probably an 85% - 90% rebuild. About the only thing that wasn't touched was my cube magazine & the dropper mechanism. Everything else (...) (19 years ago, 3-Mar-06, to lugnet.org.us.laflrc)

9 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