SunSPOT API V5.0


com.sun.spot.sensorboard.peripheral
Interface IAccelerometer3DThresholdListener

All Known Subinterfaces:
ILIS3L02AQAccelerometerListener

public interface IAccelerometer3DThresholdListener

Implemented by classes wanting a call back when an acceleration sensor value goes above or below specified thresholds.


Method Summary
 void thresholdChanged(IAccelerometer3D accel, int axis, double low, double high, boolean relative)
          Callback for when the accelerometer sensor thresholds are changed.
 void thresholdExceeded(IAccelerometer3D accel, int axis, double val, boolean relative)
          Callback for when the accelerometer sensor value goes above or below the specified threshold for one of the axis.
 

Method Detail

thresholdExceeded

void thresholdExceeded(IAccelerometer3D accel,
                       int axis,
                       double val,
                       boolean relative)
Callback for when the accelerometer sensor value goes above or below the specified threshold for one of the axis.

Parameters:
accel - the IAccelerometer3D that has crossed a threshold.
axis - which axis has exceeded one of its threshold value.
val - the current accelerometer sensor reading along that axis.
relative - if true then value is relative to the current rest offset.

thresholdChanged

void thresholdChanged(IAccelerometer3D accel,
                      int axis,
                      double low,
                      double high,
                      boolean relative)
Callback for when the accelerometer sensor thresholds are changed.

Parameters:
accel - the IAccelerometer3D that had its threshold values changed.
axis - which axis to set threshold values for.
low - the new low threshold value.
high - the new high threshold value.
relative - if true then thresholds are relative to the current rest offset.

SunSPOT API V5.0


Copyright � 2006-2008 Sun Microsystems, Inc. All Rights Reserved.