mag_hmc58xx
HMC58xx magnetometer. Module for standalone operation/logging of a HMC58xx magnetometer. An arbitrary rotation between the sensor frame and the IMU frame can be compensated with a MAG_TO_IMU rotation (defined by three euler angles). The three angles must be defined to enable this correction. Otherwise it is assumed that the axis are aligned.
Name |
Value |
Description |
---|---|---|
MAG_HMC58XX_I2C_DEV |
i2c1 |
I2C device to use (e.g. i2c1) |
Name |
Value |
Description |
---|---|---|
MODULE_HMC58XX_SYNC_SEND |
TRUE|FALSE |
Send IMU_RAW message with each new measurement (default: FALSE) |
MODULE_HMC58XX_UPDATE_AHRS |
TRUE|FALSE |
Copy measurements to imu and send as ABI message (default: FALSE) |
HMC58XX_CHAN_X_SIGN |
+|- |
Reverse polarity of x axis (default: +) |
HMC58XX_CHAN_Y_SIGN |
+|- |
Reverse polarity of y axis (default: +) |
HMC58XX_CHAN_Z_SIGN |
+|- |
Reverse polarity of z axis (default: +) |
HMC58XX_CHAN_X |
0|1|2 |
Channel id of x axis (default: 0) |
HMC58XX_CHAN_Y |
0|1|2 |
Channel id of y axis (default: 1) |
HMC58XX_CHAN_Z |
0|1|2 |
Channel id of z axis (default: 2) |
HMC58XX_ |
||
---|---|---|
Name |
Value |
Description |
MAG_TO_IMU_PHI |
0.0 |
Rotation between sensor frame and IMU frame (phi angle) |
MAG_TO_IMU_THETA |
0.0 |
Rotation between sensor frame and IMU frame (theta angle) |
MAG_TO_IMU_PSI |
0.0 |
Rotation between sensor frame and IMU frame (psi angle) |
Depends
- i2c
- @imu
Provides
- mag