kriswiner/EM7180_SENtral_sensor_hub

Change Board Orientation?

Opened this issue · 1 comments

I am using the EM7180 in a rocket, primarily to determine tilt under high G's. I am using pitch and roll to determine the tilt with the Hardware AHRS code when new quaternion data is available. I'm also using the linear X,Y,Z data to log actual g's (sans gravity).

The issue is the orientation of the board. Mounting it with the Z axis up is difficult with my package/pcb and configuration. Is there an easy way to configure the orientation to let it know X or Y is pointing up and/or is there a quaternion code sample to calculate YPR that assumes an alternate orientation?

Thank you!