jBotBrain.sensors
Class SRF02Sensor
java.lang.Object
jBotBrain.sensors.SRF02Sensor
public class SRF02Sensor
- extends Object
SRF02 ultrasonic range measure sensor abstraction class.
NOTE: This class is not static, it must be allocated.
- Author:
- Martin Wolf
|
Constructor Summary |
SRF02Sensor(int address)
Constructor, set the device address on I2C bus. |
|
Method Summary |
int |
getRange()
Read range from sensor in centimeters. |
SRF02Sensor
public SRF02Sensor(int address)
- Constructor, set the device address on I2C bus.
getRange
public int getRange()
- Read range from sensor in centimeters.