Support my work https://www.patreon.com/pawelspychalski
Today another very common problem encountered while setting up INAV: magnetometer, usually Honeywell HMC5883l magnetometer is not detected during startup and is reported as nor working.
There are a few possible reasons: faulty hardware, poor quality hardware, too long wires, too weak pullup resistors on I2C bus. Plus the possibility that HMC5883l is not really a HMC5883l but something completely else... like QMC5883.
Sometimes it helps to use stronger pullup resistors on I2C SCL and SDA line. Sometimes it helps to use slower I2C clock. Sometimes both.