jBotBrain.sensors
Class CMPS03Sensor

java.lang.Object
  extended by jBotBrain.sensors.CMPS03Sensor

public class CMPS03Sensor
extends Object

CMPS03 digital compass sensor abstraction class. NOTE: This class is not static, it must be allocated.

Author:
Martin Wolf

Constructor Summary
CMPS03Sensor(int address)
          Constructor, set the device address on I2C bus.
 
Method Summary
 float getAngleHighResolution()
          Read angle in high resolution (0.1 degree) in range 0 - 359.9 degrees.
 int getAngleLowResolution()
          Read angle in low resolution (255 steps in 360 degrees).
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait
 

Constructor Detail

CMPS03Sensor

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

Method Detail

getAngleLowResolution

public int getAngleLowResolution()
Read angle in low resolution (255 steps in 360 degrees).


getAngleHighResolution

public float getAngleHighResolution()
Read angle in high resolution (0.1 degree) in range 0 - 359.9 degrees.