ericalbers / ICM20948_DMP_Arduino

Invensense 20948 chip working with DMP code for Arduino environment
41 stars 10 forks source link

compass not detected got -1 #7

Closed Twometer closed 3 years ago

Twometer commented 3 years ago

Hi,

first of all, thanks for this port and working through the Invensense code!

But, I am trying to use 9-axis DOF and i keep getting this error:

compass not detected got -1

I tried all compass IDs and all addresses, and I can't get the compass to be detected. 6-axis fusion works.

Do you know what the cause can be?

Thanks!

Twometer commented 3 years ago

I pulled AD0 high, and FSYNC low and hard-coded 0x69 as the IMU address, and now it works.

If i try to read the magnetometer manually the values are still not valid, but I don't get the compass error anymore and the DMP gives me drift-corrected (I think) 9-axis rotation vectors so I think it's solved.