Accelerometer multiple axeses
I am trying to evaluate the accelerometer based on multiple axises.
pseudocode from what I'm trying to achieve is as follows:
accelModule.routeData().fromZAxis()
.split()
.branch().process(new Comparison(Comparison.Operation.LTE, -0.8))
.monitor...... turn on blue light
.branch().process(new Comparison(Comparison.Operation.GTE, 0.8))
.monitor.... turn on red light
.branch()... turn off light
I know the documentation states you can not use the "comparison" filter when using
accelModule.routeData().fromAxis
without doing a "summing" operation such as RSS() or RMS()... is there a way to evaluate the accelerometers 3 axises and make decisions accordingly?
i.e. if accelerometer.X > 1 and accelerometer.Y < 0
Do this...
This discussion has been closed.
Comments
settingsModule.configure().setAdInterval((short) 200, (byte) 2);