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 / 27674
27673  |  27675
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:
  Re: How can I set inch unit or metric(cm) unit to Sonar sensor?
 
(...) Thank you very much your reply. Have a nice day!! :) NXTelectroneer:-D (16 years ago, 8-Mar-09, to lugnet.robotics)

Message is in Reply To:
  How can I set inch unit or metric(cm) unit to Sonar sensor?
 
Hi, I am building a NXT remote control program but atempt a problem. 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. Or, want to know how to reading (...) (16 years ago, 7-Mar-09, to lugnet.robotics)

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

 
Verified and Trusted Team of Hackers
22 hours ago
Custom Search

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