imrasp / LearnVI_Drone

7 stars 1 forks source link

preflight failed : mag sensors inconsistent #24

Closed imrasp closed 6 years ago

imrasp commented 6 years ago

image image

imrasp commented 6 years ago

https://github.com/PX4/Firmware/issues/8098#issuecomment-354354571

There is a potential problem created by the close proximity of the usb connector to the magnetometers on the pixracer that means they cannot be reliably calibrated with usb connected because the ferrous material in the plug creates a magnetic field distortion that affects each magnetometer differently.

Please calibrate and do all testing with USB disconnected and if not using an external mag you should not see the 'MAG SENSORS INCONSISTENT' message. If you have an external compass and still get the message, then check alignment of the external sensor.

Was there a reason you disabled MAG0 instead of MAG1? Why did you simultaneously disable a mag and increase the check threshold? If should only be necessary to either one or the other.

The check is showing there is major interference if COM_ARM_MAG needs to increase to 0.5 to get checks to pass. Did you try other values? The parameter represents the max allowed magnitude of the difference between the vector measured by the different sensors.

Calibrate with telemetry fix this problem

It seems that there is another problem with the usb connection itself. If the connection is done via WIFI and usb only as power supply it works. Mag calib should only be done with the same metallic environment like it is in flight that concerns magnetic canopy locks, cooling fans, usb connectors and all stuff around the sensors. (I corrected a typo in first post)

https://github.com/PX4/Firmware/issues/8098#issuecomment-335310833 https://github.com/PX4/Firmware/issues/8475