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 / 27688
27687  |  27689
Subject: 
Re: How to control NXT motor's rotation by using LabView NXT Direct Commands?
Newsgroups: 
lugnet.robotics
Date: 
Mon, 16 Mar 2009 18:11:30 GMT
Original-From: 
mustang67 <mperez.cm@gmail.SAYNOTOSPAMcom>
Viewed: 
11531 times
  
<Thanks, but is not the information that i need. I know that with the
rotation sensor, I can read the value of the rotation of one motor, but what
I want is that this number, I want to put by a wire to a motor block, and
that will make this example:

Motor A- Controlled by me ( I 'm who turns the degrees)
Motor B- Controlled by the value of degrees of motor A.

If i turn the motor A 10 degrees, i send the value and the motor B turns 10
degrees as equal to motor A.

The question is, how I can put by a wire, and a motor block, control the
degrees that the motor has to turn.  Lots of thanks!!!
--
View this message in context: http://www.nabble.com/How-to-control-NXT-motor%27s-rotation-by-using-LabView-NXT-Direct-Commands--tp7893381p22541464.html
Sent from the LEGO Robotics mailing list archive at Nabble.com.



Message has 1 Reply:
  Re: How to control NXT motor's rotation by using LabView NXT Direct Commands?
 
(...) got it (...) There's not a super-easy way to do that. But, what you need to do is: 1) Read rotation value & direction of motor A 2) Look at rotation value & direction of motor B 3) Subtract B from A 4) Move motor B distance & direction (sign) (...) (16 years ago, 16-Mar-09, to lugnet.robotics)

Message is in Reply To:
  Re: How to control NXT motor's rotation by using LabView NXT Direct Commands?
 
If I read this correctly, you should simply be able to read the rotation sensors, using the rotation sensor block.  That will give you the value you want. Steve (...) (16 years ago, 16-Mar-09, to lugnet.robotics)

8 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
    
Active threads in Robotics

 
Verified and Trusted Team of Hackers
16 hours ago
Custom Search

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