You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OK, but versions of the board are still available and it's still useful because it has lower noise than eg the LIS3MDL.
For anyone reading this who wants to use the 0.88G mode, just add
HMC5883_MAGGAIN_0_9 = 0x00, // +/- 0.88
to the magnetometer gain settings in the .h and
case HMC5883_MAGGAIN_0_9:
_hmc5883_Gauss_LSB_XY = 1370;
_hmc5883_Gauss_LSB_Z = 1370;
break;
to Adafruit_HMC5883_Unified::setMagGain() in the .cpp
I have used conversions from the datasheet but maybe you want to scale the Z conversion (decrease by 12%) like the others in the switch(gain)
The code does not support the 0.88 G setting.
I've added it myself and it seems to work.
Is there a reason it's missing?
The text was updated successfully, but these errors were encountered: