I'm working with a lsm303agr
from ST. Here is the frame attached to the chip
Here is the body frame
So I have some doubts about the rotations, before to fuse data coming from my lsm I'd like to rotate lsm axis to body frame. So if I understand well if my sensor is flat on the body (sensor z axis points up) and pin 1 of sensor towards the front of the body. I have to rotate axis like this
- rotate x and y axis sensor to -90° or 270°
- rotate z sensor to 180°
Is it right ?