Skip to content

Using multiples IMU #3047

Answered by fvantienen
Fabien-B asked this question in Q&A
Discussion options

You must be logged in to vote

You can have a default rotation in your imu module, see modules/imu/imu_cube.c as an example where all 3 have a different default rotation.

The IMU_..._CAL can overwrite this default rotation and this is applied after the calibration of the neutral and scale such that this isn't influenced. In order to set this rotation you need to set .rotation = true in the calibrated and then set a body_to_sensor with a 3x3 RMAT (<<INT32_TRIG_FRAC).
Note that the body_to_imu is applied on top of the body_to_sensor. This rotation can thus be set per sensor and the body_to_imu is applied to all.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by fvantienen
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
3 participants