Football Fans: Download the 2012 Schedule App from Google Play!


Go Back   Android Forums > Android Discussion > Android Lounge

Android Lounge A place for general Android discussion and questions.



Reply
 
LinkBack Thread Tools
Old December 28th, 2011, 10:46 AM   #1 (permalink)
New Member
 
Join Date: Dec 2011
Posts: 1
 
Device(s):
Thanks: 1
Thanked 0 Times in 0 Posts
Default Android sensors and phone orientation

Hello, as you could notice this is my first post here.

I'm going to make some vision based navigation with an android device (using it's camera and if possible it's sensors). I will need to use a sensor to detect the orientation (or the change on it), I think that the digital compass should be enough to know where it's heading, however since the phone should be in a position so that the camera heads front I doubt that the information from the compass will be accurate. I don't know if a gyroscope or an accelerometer could help me with this problem.

To recap: The phone should be perpendicular to the floor (it can be either horizontal or vertical position), and I need to know the orientation of the phone.
Can I know this with the phone sensor?, does it need a gyroscope to accomplish that? what kind of information and in which axis of the phone can I get from and accelerometer in an android phone?

BTW: which one (Atrix 4g or galaxy S captivate) is a better choice in terms of sensors?

Sorry for my english (any correction would be helpful).

Thanks for your help.

Geomod is offline  
Reply With Quote
Sponsors
Old December 29th, 2011, 06:19 AM   #2 (permalink)
Member
 
Join Date: Sep 2010
Location: Virginia
Posts: 433
 
Device(s): Droid 2, Droid Charge
Thanks: 14
Thanked 58 Times in 51 Posts
Default

I know of two apps that use the phone's position info to accomplish tasks, Screebl and GPS Status.

GPS Stats has bubbles for pitch and roll. Perhaps you could look it up in the Market and get in touch with the author for guidance on how to access what you need for your app.
chrstdvd is offline  
Reply With Quote
The Following User Says Thank You to chrstdvd For This Useful Post:
Geomod (January 1st, 2012)
Reply

Bookmarks

Tags
accelerometer, gyro, gyroscope, orientation, sensors


Go Back   Android Forums > Android Discussion > Android Lounge User CP
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -5. The time now is 10:58 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Custom vBulletin Skins by: Relivo