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 / 27309
27308  |  27310
Subject: 
Re: NXT Program: How to avoid stop-and-go?
Newsgroups: 
lugnet.robotics
Date: 
Fri, 21 Dec 2007 01:38:02 GMT
Viewed: 
5252 times
  
In lugnet.robotics, bigboss97 <bigboss97.geo@yahoo.com> wrote:

My question: How can I move in a constant speed and check
the distance at the same time?

Try a Move block set to "unlimited": that will turn the motors on and let them
run. Then have a Wait block to wait for the US sensor to report an object, or
something similar inside a Loop. When an object (like a wall) is detected, the
next block is a Move block set to turn or back up.

--
Brian Davis



Message has 1 Reply:
  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)

Message is in Reply To:
  NXT Program: How to avoid stop-and-go?
 
I've just started with my very first vehicle according to the instruction. Then I added the distance sensor. So, my car will turn when it come too close to an obstacle. I use a loop with distance as exit condition, i.e. the loop repeats the forward (...) (17 years ago, 20-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