To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.nxtOpen lugnet.robotics.nxt in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / NXT / 748
747  |  749
Subject: 
determine the degree of turning by using ultrasonic sensor
Newsgroups: 
lugnet.robotics.nxt
Date: 
Tue, 22 May 2007 16:56:30 GMT
Viewed: 
22349 times
  
Is it quick way to determining the # of degree or some value which will help
to calculate the distance travelled. more or less like the  x=
rotation-click..



Is it a way to read how much the  motor has turned from a certain point.

-       Reset motor/sensor

-      Turn motor until sensor sees an obstacle

-      Get the value from either the sensor or the motor to help me to
determining how much it has turned.





--
MIME ATTACHMENTS DISCARDED:

1.  Content-Type: text/html;
    charset="us-ascii"
    Content-Transfer-Encoding: quoted-printable
    Content-Length: 4023



Message has 2 Replies:
  RE: determine the degree of turning by using ultrasonic sensor
 
Ok... I wrap every sequence of motion control with mutex. I created a movement macro which basically just wrap the command(s) around with acquire and release. By the way, would someone tells me how I'll find out how the mutex datatype implemented. (...) (18 years ago, 22-May-07, to lugnet.robotics.nxt)
  RE: determine the degree of turning by using ultrasonic sensor
 
Found it... RotateMotor(OUT_C, 100, turn); x = MotorRotationCount(OUT_C); --E -----Original Message----- From: news-gateway@lugnet.com [mailto:news-gateway...ugnet.com] On Behalf Of Elizabeth Mabrey Sent: Tuesday, May 22, 2007 12:57 PM To: (...) (18 years ago, 22-May-07, to lugnet.robotics.nxt)

3 Messages in This Thread:


Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    
Active threads in NXT programmable brick

 
Verified and Trusted Team of Hackers
8 hours ago
Custom Search

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