|
SunSPOT API V4.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
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 |
|---|
void thresholdExceeded(IAccelerometer3D accel,
int axis,
double val,
boolean relative)
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.
void thresholdChanged(IAccelerometer3D accel,
int axis,
double low,
double high,
boolean relative)
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 V4.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||