To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.roboticsOpen lugnet.robotics in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / 27311
27310  |  27312
Subject: 
Re: NXT Program: How to avoid stop-and-go?
Newsgroups: 
lugnet.robotics
Date: 
Fri, 21 Dec 2007 12:50:03 GMT
Viewed: 
5275 times
  
In lugnet.robotics, bigboss97 <bigboss97.geo@yahoo.com> wrote:

But if the Move block is unlimited will the next block
(Wait) be processed?

Yes. Move (unlimited) Starts the motors and *leaves them running* while
progressing on to the next block in a sequence. The motor state will then remain
unchanged until some other block (like a later Move or Motor block) changes it.

Try it an see. This can actually be used for some slightly faster multi-sequence
control of the motors if you do it right:

http://www.brickshelf.com/cgi-bin/gallery.cgi?i=2065175

There are a couple of blocks that will do things "behind the scene" for you
while the sequence of blocks continues to execute. The Sound block (playing a
tone or a .rso file) is like this as well; you can click a checkbox in the
configuration pane to get the NXT to "not wait for completion" in this case.

--
Brian Davis



Message has 1 Reply:
  Re: NXT Program: How to avoid stop-and-go? (US-Sensor in angle)
 
Brian, It works fantastic. Thanks. Now I've put 2 US Wait blocks. The 1st one to slow down for < 30cm and the 2nd one to turn for < 20cm. This works pretty well when the vehicle runs ~90 degree toward the wall. But when the angle is flat it only (...) (17 years ago, 22-Dec-07, to lugnet.robotics)

Message is in Reply To:
  Re: NXT Program: How to avoid stop-and-go?
 
But if the Move block is unlimited will the next block (Wait) be processed? and when it goes to Wait block isn't that mean Move block is done and it will stay in the Wait block for ever, because the vehicle is not moving? (...) (17 years ago, 21-Dec-07, to lugnet.robotics)

10 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