No valid data from Compass 0

Hello,

I’m trying to run the latest master of PX4 Firmware on Intel Aero RTF,
but I getting Preflight Fail: no valid data from Compass 0 message.
When I flashing previous versions everything is works fine, so it’s not HW problem.

Here the output of ls/dev and sensors status commands:

nsh> sensors status
INFO [sensors] gyro status:
INFO [ecl/validation] validator: best: 0, prev best: 0, failsafe: NO (0 events)
INFO [ecl/validation] sensor #0, prio: 99, state: OK
INFO [ecl/validation] val: 0.0051, lp: 0.0028 mean dev: 0.0000 RMS: 0.0016 conf: 1.0000
INFO [ecl/validation] val: -0.0024, lp: -0.0012 mean dev: 0.0000 RMS: 0.0012 conf: 1.0000
INFO [ecl/validation] val: 0.0019, lp: -0.0002 mean dev: -0.0000 RMS: 0.0012 conf: 1.0000
INFO [sensors] accel status:
INFO [ecl/validation] validator: best: 0, prev best: 0, failsafe: NO (0 events)
INFO [ecl/validation] sensor #0, prio: 99, state: OK
INFO [ecl/validation] val: -0.0300, lp: -0.0449 mean dev: -0.0001 RMS: 0.0110 conf: 1.0000
INFO [ecl/validation] val: -0.3082, lp: -0.2948 mean dev: 0.0001 RMS: 0.0348 conf: 1.0000
INFO [ecl/validation] val: -9.7613, lp: -9.7601 mean dev: -0.0009 RMS: 0.0352 conf: 1.0000
INFO [sensors] mag status:
INFO [ecl/validation] validator: best: -1, prev best: -1, failsafe: NO (0 events)
INFO [sensors] baro status:
INFO [ecl/validation] validator: best: 0, prev best: 0, failsafe: NO (0 events)
INFO [ecl/validation] sensor #0, prio: 75, state: OK
INFO [ecl/validation] val: 1023.2500, lp: 1023.2131 mean dev: -0.0028 RMS: 0.0472 conf: 1.0000
INFO [ecl/validation] val: 30.8600, lp: 30.8093 mean dev: 0.0774 RMS: 0.0156 conf: 1.0000
INFO [ecl/validation] val: 0.0000, lp: 0.0000 mean dev: 0.0000 RMS: 0.0000 conf: 1.0000
INFO [sensors] Temperature Compensation:
INFO [sensors] gyro: enabled: 0
INFO [sensors] accel: enabled: 0
INFO [sensors] baro: enabled: 0
INFO [sensors] Airspeed status:
INFO [ecl/validation] no data

nsh> ls /dev
/dev:
accel0
adc0
baro0
console
gyro0
ist8310_ext
led0
mag0
mpu9250_accel
mpu9250_gyro
ms5611_int
null
pipe0
pipe1
ram0
tap_esc
ttyS0
ttyS1
ttyS2
ttyS3
ttyS4
ttyS5

nsh> ver all
HW arch: INTEL_AEROFC_V1
FW git-hash: 3b3752b753c09a587646505dd89f1d6b2de888f6
FW version: 1.9.0 40 (17367104)
FW git-branch: master
OS: NuttX
OS version: Release 7.22.0 (118882559)
OS git-hash: c225d4a691ef4572839b19635a84f2d9bf07ea74
Build datetime: Jan 9 2019 19:40:19
Build uri: localhost
Toolchain: GNU GCC, 7.2.1 20170904 (release) [ARM/embedded-7-branch revision 255204]
PX4GUID: 000100000000363339373235511300210036
MCU: STM32F42x, rev. 3

Best Regards
Evgeny

Ho, did You solved?
I’m facing the same issue! I’M becaming Crazy!
Valentina

Hi,
what version of PX4 firmware you using ?

Hi
I’m using 1.9.1(stable). I don’t know how solve. Moreover, if I check parameters, I are that for mag0 and mag1, just id,en and rot parameters are set, while the others (xoff, yoff, Zoff and xscale yscale zscale) are missing. Which could be problem? I’ve repeated calibration more and more time…
Thank You very much for Your help.
Valentina

Hi, Valentina
Is there any version that is works fine for you ?

B.R
Evgeny

Until now, no! but I don’t understand why I receive different error. In prevous version I was facing with ‘selftest mag2 failed’.
I’m becaming crazy! did you solved your issue?

I solved by flashing 1.9.0 stable version.
There are no issues anymore in 1.9.0 stable.
I faced with mag0, baro and compass
errors. Sometimes it worked and suddenly error appeared, so I flashed
this version again and its solved for a while.
What vehicle you have ?

Thank you, I’ll retry flashing 1.9.0! finger crossed…
I have Pixhwak3 pro.

Nothing good, also after flashing and more than one calibration I’m facing the same issue…‘no valid data from compass 0’…:frowning:

Maybe you have some hardware or sensors connection problem ?

really I don’t know…everything SEEMS ok… :slight_smile:

But, how could I check this?

You have internal or external compass ?
Maybe it’s connected to the wrong port ?

Hi,

is there any solution to this to this point?
I’m facing the same problem with a Pixhawk 3 Pro. Calibration works fine, in the Summary everything looks fine but if I try to arm, I get the message that there is no valid data from compass 0.
In the analysis IMU and IMU3 mag values are all zero. The only valid data comes from IMU2.

Best regards
Daniel

Same issue here with PX4 version: 1.14.0 0 (17694720), on the Sentinel drone by ModalAI.

Tried calibrating multiple times but these errors pop-up randomly. Sometimes I am able to arm and sometimes not.
Even when I arm, the drone appears to be drifting towards the left every time I try to fly.

Please help.