PX4 / PX4-Autopilot

PX4 Autopilot Software
https://px4.io
BSD 3-Clause "New" or "Revised" License
8.31k stars 13.43k forks source link

Excessive offset for mag 0 #3997

Closed brendanogrady1 closed 8 years ago

brendanogrady1 commented 8 years ago

cal] ERROR: Excessive offset for mag 0 [cal] calibration failed: mag PX4 sensor calibration txt.txt

kd0aij commented 8 years ago

try latest master (see 8e4a1ca) note that your offsets didn't get saved in the list you posted

kd0aij commented 8 years ago

also, make sure to minimize stray magnetic fields influencing the magnetometer, or it won't work well

Inspirati commented 8 years ago

pls note: i found i had to import your patch in order to have my work on the new LIS3MDL driver pass the calibration routines expectations too.. (excess offsets)

On 13 March 2016 at 23:59, Mark Whitehorn notifications@github.com wrote:

try latest master (see 8e4a1ca https://github.com/PX4/Firmware/commit/8e4a1ca36e6ae5789d1d82c8b7f7e50f52f2dbed ) note that your offsets didn't get saved in the list you posted

— Reply to this email directly or view it on GitHub https://github.com/PX4/Firmware/issues/3997#issuecomment-195952746.

Inspirati commented 8 years ago

thanks Mark, i found while just now doing development testing, that the lis2mdl device would never report negative z-axis values, (at first thought about bus corruption problems), until i waved the device over my laptop computer!), whaalaay, problem solved and i successful moved onto completing calibration..//

brendanogrady1 commented 8 years ago

Hi, I am new to everything here. I do not know where to find the offsets output in the QGroundControl program. I found this issues forum by searching the error on google and joined GitHub to post my own issue. I'm in a bit over my head but trying to learn fast.

I re-ran sensor calibration with an extra long cable connected to my computer and did it as far from anything as I could get, but got the same result.

I ran analyze and turned on everything... not sure if this will help? analyze log.txt

analyze log_compressed.txt

Thank you and I hope I am not wasting your time.

LorenzMeier commented 8 years ago

@brendanogrady1 Try to flash the "developer version" (tick the "Advanced checkbox at the bottom of the flash widget"). That should fix it.

brendanogrady1 commented 8 years ago

Well, that worked! Thank you so much!

Awesome!

brendanogrady1 commented 8 years ago

Info shows a warning but calibration worked:

offsets: 0.4796, 0.2997, -1.0175, #0