jBotBrain.sensors
Class SRF02Sensor

java.lang.Object
  extended by 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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait
 

Constructor Detail

SRF02Sensor

public SRF02Sensor(int address)
Constructor, set the device address on I2C bus.

Method Detail

getRange

public int getRange()
Read range from sensor in centimeters.