Subject:
|
Re: How can I set inch unit or metric(cm) unit to Sonar sensor?
|
Newsgroups:
|
lugnet.robotics
|
Date:
|
Sun, 8 Mar 2009 04:18:51 GMT
|
Original-From:
|
NXTelectroneer <TECHNIA21@spamlessYAHOO.CO.KR>
|
Viewed:
|
10923 times
|
| |
| |
Philippe Hurbain wrote:
>
> > I am now success to reading sensors even ultrasonic(sonar) sensor.
> >
> > But I want to set the sonar to imperial(inch) unit or metric(Centimeter)
> > unit.
>
> The sensor itself returns only cm values. To use inches just multiply the
> result
> by 100 and divide by 254 (1 inch = 2.54 cm, but since we are dealing with
> integers we use 1/2.54 = 100/254)
>
> Philo
>
>
Thank you very much your reply.
Have a nice day!! :)
NXTelectroneer:-D
--
View this message in context: http://www.nabble.com/How-can-I-set-inch-unit-or-metric%28cm%29-unit-to-Sonar-sensor--tp22388493p22394832.html
Sent from the LEGO Robotics mailing list archive at Nabble.com.
|
|
Message is in Reply To:
3 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|