galaxy tab accelerometer problem

Hi

I did a game that uses accelerometer events to set gravity in my game.
I tested it on 6-7 different android devices where it works very well,
but when testing on galaxy tab 10.1 ( one of the latest models ) the x and y values of the
accelerometer events are flipped.

I put this in my build.settings:

orientation = { default = “landscape” },

But since it works on all the other devices I tested on. I wonder if it is a galaxy tab hardware problem.
Anyone else seen this problem? Any suggestions?

Thanks [import]uid: 13632 topic_id: 15383 reply_id: 315383[/import]

I just discovered that the galaxy tab uses Android v. 3.1
while the other test devices have older android versions…
maybe that has something to do with it. [import]uid: 13632 topic_id: 15383 reply_id: 56844[/import]

Hey there,

Are you able to file a bug report please and then post the # here?

Thank you,
Peach :slight_smile: [import]uid: 52491 topic_id: 15383 reply_id: 56887[/import]

I filed a bug report:

It has been logged as case #8260. [import]uid: 13632 topic_id: 15383 reply_id: 57224[/import]

Hello ojnab,

Case #8260 has been forwarded to our dev team. One of our engineers should be contacting you soon regarding your case.

Thanks,
Reiko.
[import]uid: 72850 topic_id: 15383 reply_id: 57299[/import]

This bug has been fixed as of the latest daily build, which will be available to you if you are a paid subscriber.

The issue was that some Android devices, particularly tablets, have a default orientation of landscape. This means that their accelerometer, gyroscope, and other sensors are mounted landscape compared to phones whose sensors are normally mounted with a portrait orientation. That’s why your x/y data was flipped, at 90 degrees. We fixed it by always providing sensor data relative to portrait for consistency. [import]uid: 32256 topic_id: 15383 reply_id: 58432[/import]