Double Compass - DroneCAN

Has anyone else had a problem with a CAN compass/GPS module showing up twice in the compass list with identical details? It puts it as a 1 and 3 in the order and 2 is the internal compass. Ardupilot seems to detect the module twice and then it takes the compass offsets and moves them to be COMPASS_OFS3 instead of COMPASS_OFS. Most of the time it only shows up once which is what is supposed to happen but sometimes suddenly adds another one.

Try increasing BRD_BOOT_DELAY

To allow the GPS module to boot before the flight controller?

I have BRD_BOOT_DELAY on 5000 ms. Does anyone think it should be higher?

I’ve seen this before, and sometimes I get rid of it by clearing the COMPASS_ID fields before rebooting, then the “ghost” compass is gone. That might not be the right param to change, but if you send me a param file once the issue occurs I can take a closer look.

Also, for some dronecan integrated compass/gps units, it can take several seconds (longer than 5) for the board to initialize. YMMV

1 Like