javax.microedition.sensor
Class TiltChannelInfo

java.lang.Object
  extended by javax.microedition.sensor.NXTChannelInfo
      extended by javax.microedition.sensor.TiltChannelInfo
All Implemented Interfaces:
ChannelInfo

public class TiltChannelInfo
extends NXTChannelInfo

ChannelInfo for tilt channels rot_x, rot_y and rot_z as implemented by the Mindsensors range of acceleration sensors.

Author:
Lawrie Griffiths

Field Summary
static String[] axes
           
 
Fields inherited from interface javax.microedition.sensor.ChannelInfo
TYPE_DOUBLE, TYPE_INT, TYPE_OBJECT
 
Constructor Summary
TiltChannelInfo(String axis)
           
 
Method Summary
 MeasurementRange[] getMeasurementRanges()
           
 String getName()
           
 int getOffset()
          Get the value that represents zero.
 int getRegister()
          Get the register that returns channel data for an I2C channel
 Unit getUnit()
           
 
Methods inherited from class javax.microedition.sensor.NXTChannelInfo
getAccuracy, getDataLength, getDataType, getScale
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

axes

public static final String[] axes
Constructor Detail

TiltChannelInfo

public TiltChannelInfo(String axis)
Method Detail

getRegister

public int getRegister()
Description copied from class: NXTChannelInfo
Get the register that returns channel data for an I2C channel

Overrides:
getRegister in class NXTChannelInfo
Returns:
the register

getMeasurementRanges

public MeasurementRange[] getMeasurementRanges()

getName

public String getName()

getUnit

public Unit getUnit()
Specified by:
getUnit in interface ChannelInfo
Overrides:
getUnit in class NXTChannelInfo

getOffset

public int getOffset()
Description copied from class: NXTChannelInfo
Get the value that represents zero.

Overrides:
getOffset in class NXTChannelInfo
Returns:
the offset