Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #2675

Android Sensor Coordinates

From Lawrence D'Oliveiro <ldo@geek-central.gen.new_zealand>
Newsgroups comp.lang.java.programmer
Subject Android Sensor Coordinates
Followup-To comp.lang.java.programmer
Date 2011-04-01 13:03 +1300
Organization Geek Central
Message-ID <in34ov$2ts$1@lust.ihug.co.nz> (permalink)

Followups directed to: comp.lang.java.programmer

Show all headers | View raw


The diagram of the linear sensor coordinate system here 
<http://developer.android.com/reference/android/hardware/SensorEvent.html> 
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.

Back to comp.lang.java.programmer | Previous | NextNext in thread | Find similar


Thread

Android Sensor Coordinates Lawrence D'Oliveiro <ldo@geek-central.gen.new_zealand> - 2011-04-01 13:03 +1300
  Re: Android Sensor Coordinates Patricia Shanahan <pats@acm.org> - 2011-03-31 17:53 -0700
    Re: Android Sensor Coordinates Lawrence D'Oliveiro <ldo@geek-central.gen.new_zealand> - 2011-04-01 15:44 +1300
  Re: Android Sensor Coordinates Peter Duniho <NpOeStPeAdM@NnOwSlPiAnMk.com> - 2011-03-31 18:20 -0700
    Re: Android Sensor Coordinates BGB <cr88192@hotmail.com> - 2011-04-01 11:02 -0700
      Re: Android Sensor Coordinates Peter Duniho <NpOeStPeAdM@NnOwSlPiAnMk.com> - 2011-04-01 17:51 -0700
        Re: Android Sensor Coordinates Lew <noone@lewscanon.com> - 2011-04-01 21:23 -0400

csiph-web