LiquidCGS / FastIMU

the IMU library to rule them all (wip)
MIT License
122 stars 15 forks source link

The magnetometer issue in F_MPU6500.cpp #14

Closed rafiqrushdan closed 6 months ago

rafiqrushdan commented 6 months ago

The magnetometer for my unit cannot use the the set pass mode from the code. Hence I suggest we used this code

writeByte(IMUAddress, MPU6500_INT_PIN_CFG, 0x02);   //enable Magnetometer bypass
writeByte(IMUAddress, MPU6500_INT_ENABLE, 0x01);    // Enable data ready (bit 0) interrupt

**Before this the code use 0x22 to enable Magnetometer to bypass.

LiquidCGS commented 6 months ago

Can you expand on your issue? what do you mean by "The magnetometer for my unit cannot use the the set pass mode from the code." if you have a magnetometer just plug it directly to the i2c bus, in paralell with the IMU.