Calculating "aviation" roll from sensors

Put your problem here if it does not fit any of the other categories.

Calculating "aviation" roll from sensors

Postby penfoldcrumbs » Tue Apr 19, 2011 2:31 pm

Hi, I am trying to calculate roll from the sensors, these seem to work fine when I hold the phone vertically, but when the phone is flat (lying on a table) the roll values become useless and the azimuth values seem to be relevant. Now, holding the phone half way between these two extremes, I would guess that I need to use both values somehow to calculate the real roll of the phone.

Think racing games, you can hold your device in front of you and use the roll to turn, or hold it flat and still use the roll to turn

A better example is an quad emulating the ground. Now when I roll the phone, the quad should stay horizontal, regardless of how I hold it.

Any pointers?

Thanks in advance.
penfoldcrumbs
Once Poster
Once Poster
 
Posts: 1
Joined: Tue Apr 19, 2011 2:23 pm

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: Google [Bot] and 30 guests