Subject:
|
RE: determine the degree of turning by using ultrasonic sensor
|
Newsgroups:
|
lugnet.robotics.nxt
|
Date:
|
Tue, 22 May 2007 22:34:49 GMT
|
Viewed:
|
22989 times
|
| |
 | |
Found it...
RotateMotor(OUT_C, 100, turn);
x = MotorRotationCount(OUT_C);
--E
-----Original Message-----
From: news-gateway@lugnet.com [mailto:news-gateway@lugnet.com] On Behalf Of
Elizabeth Mabrey
Sent: Tuesday, May 22, 2007 12:57 PM
To: lugnet.robotics.nxt@lugnet.com
Subject: determine the degree of turning by using ultrasonic sensor
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 is in Reply To:
3 Messages in This Thread:   
  
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|