mag_rm3100

PNI RM3100 magnetometer. I2C interface.

Configures

Name

Value

Description

MAG_RM3100_I2C_DEV

i2cX

I2C device to use

Defines

Name

Value

Description

MODULE_RM3100_SYNC_SEND

TRUE|FALSE

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

MODULE_RM3100_UPDATE_AHRS

TRUE|FALSE

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

RM3100_CHAN_X_SIGN

+|-

Reverse polarity of x axis (default: +)

RM3100_CHAN_Y_SIGN

+|-

Reverse polarity of y axis (default: +)

RM3100_CHAN_Z_SIGN

+|-

Reverse polarity of z axis (default: +)

RM3100_CHAN_X

0|1|2

Channel id of x axis (default: 0)

RM3100_CHAN_Y

0|1|2

Channel id of y axis (default: 1)

RM3100_CHAN_Z

0|1|2

Channel id of z axis (default: 2)

Section MAG_RM3100

RM3100_

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)

DATA_RATE

RM3100_RATE_150

Continuous conversion data rate

Depends

  • i2c
  • @imu

Provides

  • mag

Sections