normalization - Manipulating Gyroscope / Accelerometer Values obtained from iPhone 4 -


I am developing a project for my university, which manipulate gyroscope / accelerometer values ​​from iPhone 4 . But I got stuck with a math problem and I hope you guys can help me.

What example do I give you about this:

  1. Your iPhone is of face and you
  2. The face of your iPhone is correct and you At the bar X axis, this time the axis (when you have rotated the iPhone 90 degrees). For the second time, the computer has said that I have transferred the iPhone to the right, but it is wrong. I have taken it up, but my eyes were rotated because the face of the iPhone was right.

    What do I want? I need to virtually withdraw the iPhone face (where 3 axis is correct) and each axis gives the right movement.

    If the iPhone has been 90 degrees, I can easily switch the XJ axis and its right but I want to work it for any angle of rotation.

    If someone can help me with some kind of pseudo-algorithm or mathematical description, then I would be truly grateful.

    Note: I just need to replenish all the three axes along with the iPhone rotation.

    Update:

    I do not need exact values, because I am making a graph contrast between all the records obtained from the ziroscope. I will make it clear.

    - & gt; You just take a letter by taking the iPhone into the air and my application will recognize the letter you attract. The method I use is based on the TFT algorithm, and records a database with sample values ​​that I have already attracted.

    I have to say: or what they represent. All I need is that all the graphs are equal, even if the iPhone is on a different position. It is very difficult to clarify, but if you make 'P' in UP with the iPhone, the graph will be different if you come to 'P', then the iPhone took the right steps.

    So I need to replenish the axis for my original orientation, in this way I'll always get the same graph.

    This post was before IOS5 was released. For any person coming here, FYI shows the way to change the relative acceleration values ​​to the earth for iOS 5 and above.

Comments

Popular posts from this blog

qt - switch/case statement in C++ with a QString type -

python - sqlite3.OperationalError: near "REFERENCES": syntax error - foreign key creating -

Python's equivalent for Ruby's define_method? -