Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!news.linkpendium.com!news.linkpendium.com!newsfeeds.ihug.co.nz!lust.ihug.co.nz!ihug.co.nz!not-for-mail From: Lawrence D'Oliveiro Newsgroups: comp.lang.java.programmer Subject: Android Sensor Coordinates Followup-To: comp.lang.java.programmer Date: Fri, 01 Apr 2011 13:03:42 +1300 Organization: Geek Central Lines: 15 Message-ID: NNTP-Posting-Host: 118-92-92-183.dsl.dyn.ihug.co.nz Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7Bit X-Trace: lust.ihug.co.nz 1301616223 3004 118.92.92.183 (1 Apr 2011 00:03:43 GMT) X-Complaints-To: abuse@ihug.co.nz NNTP-Posting-Date: Fri, 1 Apr 2011 00:03:43 +0000 (UTC) User-Agent: KNode/4.4.7 Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:2675 The diagram of the linear sensor coordinate system here seems to be wrong. I have a test program running on my HTC Desire (Android 2.2), showing me values from the accelerometer. As it lies horizontally, face-up on my desk, the Z value is positive (around 9.8, as you would expect). But that diagram says that positive Z is up, not down. I tilt the phone to the left, and the X value increases. Tilt to the right, it decreases. But the diagram says positive X is to the right, not the left. Tilt it up, the Y value increases. Hold it vertical, with the display upside down, and the Y value shows negative. Again, completely the opposite to the diagram.