I am trying to create a simple version of VFH (Vector Field Histogram) on the NXT using NBC (next byte code). To do this I need to accurately measure the distance between the robot and an object. Since the NXT can show the distance in centimeters, I want to program the distance in centimeters in my program? Since there is no default centimeter reading(or is there?), can this be done or do I have to use the default sensor values? If it can, how do I do it? If not, how can I translate the ultrasonic sensor readings into centimeter readings?
Thanks in advance.