|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.wiigee.filter.Filter
org.wiigee.filter.IdleStateFilter
public class IdleStateFilter
Filters if the wiimote is not moved in any way. Be careful in using this filter together with a HighPassFilter.
| Constructor Summary | |
|---|---|
IdleStateFilter()
Since an acceleration sensor usually provides information even if it doesn't move, this filter removes the data if it's in the idle state. |
|
| Method Summary | |
|---|---|
double[] |
filterAlgorithm(double[] vector)
A filter receives a triple of acceleration values within the variable 'vector'. |
double |
getSensivity()
|
void |
reset()
|
void |
setSensivity(double sensivity)
Defines the absolute value when the wiimote should react to acceleration. |
| Methods inherited from class org.wiigee.filter.Filter |
|---|
filter |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IdleStateFilter()
| Method Detail |
|---|
public void reset()
reset in class Filterpublic double[] filterAlgorithm(double[] vector)
Filter
filterAlgorithm in class Filterpublic void setSensivity(double sensivity)
sensivity - acceleration data values smaller than this value wouldn't be detected.public double getSensivity()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||