No valid data from Compass 0

#1

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

#2

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

#3

Hi,
what version of PX4 firmware you using ?

#4

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

#5

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

B.R
Evgeny

#6

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?

#7

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 ?

#8

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

#9

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

#10

Maybe you have some hardware or sensors connection problem ?

#11

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

#12

But, how could I check this?

#13

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