raul-ortega / u360gts

The Universal 360º Continous Rotation Tracker System for Drones (UAVs, RPAs and FPV).

Home Page:http://www.u360gts.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Mag not recognized for Bn-880 gps

AlexC176 opened this issue · comments

Firmware does not recognize the BN-880 compass via the IC2 bus under the SPRacing F3 board. Tried two separate 880 GPS units. Additionally tried 5kohm pull-up resistors on the IC2 bus between the input (3v) and the SDA and SCL lines, no effect. Compass on the BN-880 is a IC HMC5883L. GPS via uart is functioning correctly. I cannot find any setting to control the IC2 bus speed so assume it’s hard coded to a specified default frequency.

Source code under drivers for ic2 looks like the default clock speed is 400khz (with an overclock method to 800khz). INAV has an option to drop to 200khz specifically to address problematic MAG sensors (https://github.com/iNavFlight/inav/releases/tag/1.7.3). Would u360gts consider dropping to a default 200khz given that the OLED and MAG don’t require a fast update rate. If someone could compile the code with the lower bus speed I will test to determine if the issue is resolved that way.

Separate hardware Mag confirmed working ok within the overall hardware system. So it’s not the F3 or wiring.