Quote:
Originally Posted by thephpdev
You can get a reading from a sensor by getting the voltage output by the sensor. Which can be done like this:
Code:
private AnalogChannel ultrasonic = new AnalogChannel(1);
private double voltage = ultrasonic.getVoltage();
|
To get inches from the sensor I
THINK you need to multiply the output voltage by 100. again I'm not positive. This is info I carried over from Labview. I see no reason it would be different.