Subject:
|
Re: How can I set inch unit or metric(cm) unit to Sonar sensor?
|
Newsgroups:
|
lugnet.robotics
|
Date:
|
Sat, 7 Mar 2009 18:52:21 GMT
|
Viewed:
|
10613 times
|
| |
| |
> 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
|
|
Message has 1 Reply:
Message is in Reply To:
3 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
|
|
|
|