|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwiiusej.wiiusejevents.GenericEvent
wiiusej.wiiusejevents.physicalevents.MotionSensingEvent
public class MotionSensingEvent
Class which represents a motion sensing event.
Field Summary | |
---|---|
private RawAcceleration |
acceleration
|
private int |
accelerationThreshold
|
private float |
alphaSmoothing
|
private GForce |
gforce
|
private boolean |
isSmoothingActive
|
private Orientation |
orientation
|
private float |
orientationThreshold
|
Constructor Summary | |
---|---|
MotionSensingEvent(int id,
float orientationThreshold,
int accelerationThreshold,
boolean smoothingState,
float alphaSmooth,
float r,
float p,
float ya,
float ar,
float ap,
float x,
float y,
float z,
short xx,
short yy,
short zz)
Constructor for a Motion Sensing Event. |
Method Summary | |
---|---|
int |
getAccelerationThreshold()
Get acceleration threshold. |
float |
getAlphaSmoothing()
Get alpha smoothing. |
GForce |
getGforce()
Get the gravity force. |
Orientation |
getOrientation()
|
float |
getOrientationThreshold()
Get orientation threshold. |
RawAcceleration |
getRawAcceleration()
Get the raw acceleration. |
boolean |
isSmoothingActive()
Tell if the option SMOOTHING is activated. |
private void |
setOrientationAndGforce(float r,
float p,
float ya,
float ar,
float ap,
float x,
float y,
float z,
short xx,
short yy,
short zz)
Set orientation, gravity force and raw acceleration. |
java.lang.String |
toString()
|
Methods inherited from class wiiusej.wiiusejevents.GenericEvent |
---|
getWiimoteId |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private Orientation orientation
private GForce gforce
private RawAcceleration acceleration
private float orientationThreshold
private int accelerationThreshold
private float alphaSmoothing
private boolean isSmoothingActive
Constructor Detail |
---|
public MotionSensingEvent(int id, float orientationThreshold, int accelerationThreshold, boolean smoothingState, float alphaSmooth, float r, float p, float ya, float ar, float ap, float x, float y, float z, short xx, short yy, short zz)
id
- id of the wiimote concerned.orientationThreshold
- value of the minimum angle between two events with the
accelerometer.accelerationThreshold
- value of the value variation between two events with the
accelerometer.smoothingState
- true if smoothing flag is activated.alphaSmooth
- value of the alpha smoothing parameter.r
- roll.p
- pitch.ya
- yaw.ar
- absolute roll.ap
- absolute pitch.x
- gravity force on x axis.y
- gravity force on y axis.z
- gravity force on z axis.xx
- raw acceleration on x axis.yy
- raw acceleration on y axis.zz
- raw acceleration on z axis.Method Detail |
---|
private void setOrientationAndGforce(float r, float p, float ya, float ar, float ap, float x, float y, float z, short xx, short yy, short zz)
r
- rollp
- pitchya
- yawar
- absolute rollap
- absolute pitchx
- gravity force on x axisy
- gravity force on y axisz
- gravity force on z axisxx
- raw acceleration on x axisyy
- raw acceleration on y axiszz
- raw acceleration on z axispublic Orientation getOrientation()
public GForce getGforce()
public RawAcceleration getRawAcceleration()
public float getOrientationThreshold()
public int getAccelerationThreshold()
public float getAlphaSmoothing()
public boolean isSmoothingActive()
public java.lang.String toString()
toString
in class GenericEvent
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |