Orientation Matrix

By richas , 5 November 2015

Hi,
I am having trouble setting up the orientation matrix, defined initially as:

signed char gyro_orientation[9] = { 1, 0, 0,
0, 1, 0,
0, 0, 1};

This works fine for the sensor flat relative to gravity but how do I modify this matrix for a sensor that is mounted vertically?

Motion driver 6.0
MPU9150

Thank you

Rich

ingeea

9 years 9 months ago

Hi,
can you please Reply if you have found a solution to your question or can you Redirect me to a link.. etc. I am facing the same Problem and i am not able to resolve it

thanks.
Daniel

phpbb Post ID
34611

wxzhuhua

9 years 2 months ago

Hi, Rich,

In this case, let's say Y become Z, Z become -Y, then it should be :

{ 1, 0, 0
0, 0, 1
0,-1, 0}

I'm not sure if it's correct, please confirm and reply, thank you.

Bob

phpbb Post ID
35877
phpbb Topic ID
30801