Quantcast
Channel: openFrameworks - Latest posts
Viewing all articles
Browse latest Browse all 40524

How to get the orientation from Android?

$
0
0

Hi guys,

I am trying to retrieve data orientation from Android, but I do not want to use the accelerometer because I think it could be not that accurate. I am thinking on using the gyroscope instead. What do you guys think?
Is there anything already done on this?
Does anybody know how to do it or Do you have any hint about that?

Basically I'd like to know where the phone is pointing taking into consideration the magnetic north.
Therefore I can get the angle.

I found this addons but it is just for iOS:
https://github.com/trentbrooks/ofxCoreMotion

I found these JAVA implementation for a compass, but I do not know how to link openframeworks and JAVA code.
http://www.javacodegeeks.com/2013/09/android-compass-code-example.html
http://www.techrepublic.com/article/pro-tip-create-your-own-magnetic-compass-using-androids-internal-sensors/

Cheers,


Viewing all articles
Browse latest Browse all 40524

Trending Articles