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:
.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
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
This discussion has been closed.