Accelerometer single axis sampling

Hi,

I'm using Android API 2.2.0 with RPRO and I was testing single axis sampling from the accelerometer.
Since streaming is not supported, I was logging the values like this:
mwBoard.getModule(Accelerometer.class).routeData().fromZAxis().log("xlz").commit();
The problem is that in the log messages I always receive the value of the X axis instead of the requested one - Z or Y.
However, if I chain something between the source and the log, I get the correct axis value in the log message. For example:
...fromZAxis().process(new Maths(Maths.Operation.MULTIPLY, 1)).log("xlz").commit();
Seems like a minor issue, but I hope you can have a look.

Thanks

Comments

This discussion has been closed.