Same ID

I’m pretty shure my board and external compass are heading the same direction.

I get twice the same ID on Compass_dev_id and Compass_dev_id2. so AC 3.2.1 see that there are two of them but gives the same ID and so I get a prearm compass not kalibrated.
Two days ago everything was fine an I could perfectly fly in Loiter.
I didn’t touched the copter since thrn, pluged the usb to my AUAV-X2 and then compass error.
My compass is the one frome drotek the big one with XL M8N.

Values two days ago
Compass_autodetec: 1
Compass_dev_id: 73225
Compass_dev_id2: 131594
Compass_external: 1
Compass_mottc: 1
Compass_ofs_x:-22
Compass_ofs_y:-32
Compass_ofs_z: 38
Compass_ofs2_x: 76
Compass_ofs2_y: -200
Compass_ofs2_z: -66
Compass_use: 1

And yesterday without flying just usb connection to missionplanner

Compass_autodetec: 1
Compass_dev_id: 131594
Compass_dev_id2: 131594
Compass_external: 0
Compass_mottc: 1
Compass_ofs_x:-22
Compass_ofs_y:-32
Compass_ofs_z: 38
Compass_ofs2_x: 76
Compass_ofs2_y: -200
Compass_ofs2_z: -66
Compass_use: 1

this gives me a prearm compass not calibrated.

Please tel me where is the bug.
Thanks

Anyone a solution?

@Sn0west: did you ever resolved this problem?

I have sometimes the same problem. I am also using a AUAVX2 but in combination with a Drotek GPS module with compass and running AC 3.2.1.

My analysis is that the problem is caused by bad wires. It looks like that -sometimes- the external compass is not detected by the software. You can test this by disconnecting the external compass and then boot the FC.
So, when the compass module is detected, (you see two different COMPASS_DEV_ID’s) you can perform the compass calibration.
After calibration, reboot the FC with disconnected external compass, then both COMPASS_DEV_ID are identical and represents the internal compass ID.
This is not what I expect… I expect that COMPASS_DEV_ID would be 0 and COMPASS_DEV_ID2:131594.
Although it’s not really important because COMPASS_PRIMARY stays 0 and should also switch to 1

with correct detected external compass
PARM, COMPASS_OFS_X, -181
PARM, COMPASS_OFS_Y, 8
PARM, COMPASS_OFS_Z, -127
PARM, COMPASS_DEC, 0
PARM, COMPASS_LEARN, 0
PARM, COMPASS_USE, 1
PARM, COMPASS_AUTODEC, 1
PARM, COMPASS_MOTCT, 0
PARM, COMPASS_MOT_X, 0
PARM, COMPASS_MOT_Y, 0
PARM, COMPASS_MOT_Z, 0
PARM, COMPASS_ORIENT, 0
PARM, COMPASS_EXTERNAL, 1
PARM, COMPASS_OFS2_X, 111
PARM, COMPASS_OFS2_Y, -183
PARM, COMPASS_OFS2_Z, 43
PARM, COMPASS_MOT2_X, 0
PARM, COMPASS_MOT2_Y, 0
PARM, COMPASS_MOT2_Z, 0
PARM, COMPASS_PRIMARY, 0
PARM, COMPASS_OFS3_X, 0
PARM, COMPASS_OFS3_Y, 0
PARM, COMPASS_OFS3_Z, 0
PARM, COMPASS_MOT3_X, 0
PARM, COMPASS_MOT3_Y, 0
PARM, COMPASS_MOT3_Z, 0
PARM, COMPASS_DEV_ID, 73225
PARM, COMPASS_DEV_ID2, 131594
PARM, COMPASS_DEV_ID3, 0

With the disconnected/not detected external compass:
PARM, COMPASS_OFS_X, -181
PARM, COMPASS_OFS_Y, 8
PARM, COMPASS_OFS_Z, -127
PARM, COMPASS_DEC, 0
PARM, COMPASS_LEARN, 0
PARM, COMPASS_USE, 1
PARM, COMPASS_AUTODEC, 1
PARM, COMPASS_MOTCT, 0
PARM, COMPASS_MOT_X, 0
PARM, COMPASS_MOT_Y, 0
PARM, COMPASS_MOT_Z, 0
PARM, COMPASS_ORIENT, 0
PARM, COMPASS_EXTERNAL, 0
PARM, COMPASS_OFS2_X, 111
PARM, COMPASS_OFS2_Y, -183
PARM, COMPASS_OFS2_Z, 43
PARM, COMPASS_MOT2_X, 0
PARM, COMPASS_MOT2_Y, 0
PARM, COMPASS_MOT2_Z, 0
PARM, COMPASS_PRIMARY, 0
PARM, COMPASS_OFS3_X, 0
PARM, COMPASS_OFS3_Y, 0
PARM, COMPASS_OFS3_Z, 0
PARM, COMPASS_MOT3_X, 0
PARM, COMPASS_MOT3_Y, 0
PARM, COMPASS_MOT3_Z, 0
PARM, COMPASS_DEV_ID, 131594
PARM, COMPASS_DEV_ID2, 131594
PARM, COMPASS_DEV_ID3, 0