roll and pitch angles

Thread Starter

carter2000

Joined Sep 9, 2015
2
Hello, the task is:
Design and implementation of a program with the available
provided hardware (STM32F4DISCOVERY + board with 3 MEMS sensors) the
temporally variable roll and pitch angles of the system in real time has to be determined.


the program has been made so far, we get from the 3
Sensors (accelerometer, gyrometer, magneto-resistive sensor) ax, ay, az;
wx, wy, wz; x, y, z.
how can be determined the roll and pitch angles with that value?
does someone know the mathematical formula for that?
how can we determine it with Eulerangle e.g.
 

Papabravo

Joined Feb 24, 2006
21,225
If x is the pitch axis, y is the roll axis, and z is the yaw axis, then the angles will all be arctangents of the ratio of coordinate pairs. Can you figure out which pairs give you the angles you want?

One more thing, the sensors need to be located away from the center of rotation.
 
Top