kriswiner / EM7180_SENtral_sensor_hub

(Affordable) Ultimate Sensor Fusion Solution
https://www.tindie.com/products/onehorse/ultimate-sensor-fusion-solution/
96 stars 37 forks source link

Change Board Orientation? #59

Open AllDigital33 opened 4 years ago

AllDigital33 commented 4 years ago

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!

kriswiner commented 4 years ago

The stock firmware is for the usual case where z axis is up (or down) or close to it. Special firmware is required if x- or y-axis is going to be up (or down).

On Sat, Aug 24, 2019 at 9:49 PM AllDigital33 notifications@github.com wrote:

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!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/kriswiner/EM7180_SENtral_sensor_hub/issues/59?email_source=notifications&email_token=ABTDLKQNSIQENOYHDMFVF23QGIFNLA5CNFSM4IPH7J52YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HHG23WA, or mute the thread https://github.com/notifications/unsubscribe-auth/ABTDLKTRW34DY7PIDGJSQOLQGIFNLANCNFSM4IPH7J5Q .