mag_lis3mdl

ST LIS3MDL magnetometer.

Configures

Name

Value

Description

MAG_LIS3MDL_I2C_DEV

i2cX

I2C device to use

Defines

Name

Value

Description

MODULE_LIS3MDL_SYNC_SEND

TRUE|FALSE

Send IMU_RAW message with each new measurement (default: FALSE)

MODULE_LIS3MDL_UPDATE_AHRS

TRUE|FALSE

Copy measurements to imu and send as ABI message (default: FALSE)

LIS3MDL_CHAN_X_SIGN

+|-

Reverse polarity of x axis (default: +)

LIS3MDL_CHAN_Y_SIGN

+|-

Reverse polarity of y axis (default: +)

LIS3MDL_CHAN_Z_SIGN

+|-

Reverse polarity of z axis (default: +)

LIS3MDL_CHAN_X

0|1|2

Channel id of x axis (default: 0)

LIS3MDL_CHAN_Y

0|1|2

Channel id of y axis (default: 1)

LIS3MDL_CHAN_Z

0|1|2

Channel id of z axis (default: 2)

Section MAG_LIS3MDL

LIS3MDL_

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

Sections