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 / 390
389  |  391
Subject: 
Re: Advantage on motor change direction?
Newsgroups: 
lugnet.robotics.rcx.robolab
Date: 
Thu, 3 Mar 2005 00:20:36 GMT
Viewed: 
8911 times
  
In lugnet.robotics.rcx.robolab, Elizabeth Mabrey wrote:
Hi

I am trying to understand if there is much advantage on using the "change
direction" command, instead of using the usual "turn on motor " in the
opposition direction command.

This command is useful when you don't already know what direction a motor is
going.

Consider the following contrived example: A Robot w/a single light sensor is
supposed to drive back and forth between two  black lines.  Additionally, this
robot is supposed to start in a random direction. Coding this using flip is
substantially tighter than using "Motor A forward".

This topic actually brings up problem I keep running into.  Is there any way to
programatically detect which direction a motor is set to turn?

Thanks,

Tom



Message has 1 Reply:
  Re: Advantage on motor change direction?
 
In lugnet.robotics.rcx.robolab, Thomas Johnson wrote: <snip> (...) Um, you can't programmatically detect *in advance* which direction the motor is *set to turn* because that's determined by hardware, namely, by the orientation of the electric cable (...) (20 years ago, 7-Mar-05, to lugnet.robotics.rcx.robolab)

Message is in Reply To:
  Advantage on motor change direction?
 
Hi I am trying to understand if there is much advantage on using the "change direction" command, instead of using the usual "turn on motor " in the opposition direction command. (20 years ago, 1-Mar-05, to lugnet.robotics.rcx.robolab)

4 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