Sun SPOT API
Green Release  


com.sun.spot.sensorboard.peripheral
Interface IAccelerometer3D

All Known Implementing Classes:
LIS3L02AQAccelerometer

public interface IAccelerometer3D

Accelerometer3D provides access to the values for each of the x, y and z axes returned by the accelerometer on the demo board.

Author:
Syntropy

Method Summary
 int getCurrentRange()
           
 int[] getRanges()
           
 IScalarInput getXAxis()
           
 IScalarInput getYAxis()
           
 IScalarInput getZAxis()
           
 void setRange(int rangeIndex)
          Set the current range of this device to the range corresponding to getRanges()[rangeIndex]
 

Method Detail

getXAxis

IScalarInput getXAxis()
Returns:
a RangeInput for the x axis.

getYAxis

IScalarInput getYAxis()
Returns:
a RangeInput for the y axis.

getZAxis

IScalarInput getZAxis()
Returns:
a RangeInput for the z axis.

getRanges

int[] getRanges()
Returns:
an array containing the 'max range' values supported by this device

setRange

void setRange(int rangeIndex)
Set the current range of this device to the range corresponding to getRanges()[rangeIndex]

Parameters:
rangeIndex - index into getRanges() of the required range

getCurrentRange

int getCurrentRange()
Returns:
the index into getRanges() of the current range

Sun SPOT API
Green Release  


Copyright © 2006 Sun Microsystems, Inc. All Rights Reserved.