ohma wrote:I guees he is using 0.9.1, and I wonder why .getTilt have been removed? It worked perfekt. I used it for a "magic-wand" - which work quite good.
Can we maybe get it back?
I checked revision 5101 of AccelHTSensor.java, which is the last one which contained getTiltX(), and the fact is that getTiltX() was returning the upper 8 bits of acceleration (not tilt!) value of the X axis while getAccelX() returned the lower two bits. Again: the sensor does NOT provide any tilt data, as you can see on the manufacturer's homepage: http://www.hitechnic.com/cgi-bin/commer ... ey=NAC1040
That the tilt methods even existed, and that they returned the wrong data, was a bug which originated in the mistake of copy/pasting AccelMindSensor.java to AccelHTSensor.java.
If your old code works nicely, then it will most likely still work. Since what used to be returned by getTiltX() is now returned by getAccelX(). In fact, your code only needs to adjust to the fact that getAccelX() now returns the whole 10 bit, instead of the upper 8 that used to be returned by getTiltX().