MR60

Max mag field length--Why A Max?

Why a maximum value of 550? I understand intuitively why there would be a minimum value.

We typically see less than 6% mag field interference, but always get nailed by the max mag field length. Values are typically 680 to 790.

The integrated compass/mag is on a long multicopter with more than 8" space to the battery and motors. Running a compass around the mag shows little to no interference.

Mag calibration (only the external enabled) usually brings up values like -120 -50 80 ish.

What is "Max mag field length" and why the max?  If we exceed the max, what behaviors might that propagate?

Example:

Test: Compass = GOOD - mag_field interference within limits (4.20%)

Max mag field length (686.01) > recommended (550.00)

You need to be a member of diydrones to add comments!

Join diydrones

Email me when people reply –

Replies

  • The way I see it is that mag sensor is needed for drone to know the absolute direction at any time in flight. The problem is that mag sensor is susceptible to outside interference and therefore is not reliable.

    A low drift gyroscope could be used for the same purpose without the disadvantage of being susceptible from outside interference. The best would be a fiber-optic gyroscope but they are too big, too heavy and probably too expensive for quadcopter design. MEMS gyroscopes have more drift but depending on flight time could be within limits.


    Forrest Frantz said:

    Low drift gyro???

  • MR60

    Low drift gyro???

  • We had issues with mag field as well. Eventually the decision was to use low drift gyro.

  • MR60

    Great link.

    - MaxMagField = maximum of mf(index)

    - where index = 0 to length, where length = the number of observations from the flight

    - mf = sqrt(mx^2 + my^2 + mz^2) or the 3-D distance (magnitude) of all three components

    - mx, my, & mz which are "Mag Field Strength" or "Body fixed magnetic field (mgauss)"

    ... and look something like

    The yellow line is mf and the other lines are mx, my, & mz

    3702336550?profile=original

    So why would a strong mag signal be bad?  If the mag signal was being influenced by a ferrous metal, yes, big might be bad, but if not???



    Jon said:

    I also have problems in this area. Yesterday I did the normal compass dance and was quite pleased with offsets at -11, 2, -35. Flew my quad and put the log through Mission Planner's Auto Analysis with the result Compass = good mag_field within limits 13.73%, max mag field length 679.10 which is higher than the recommended 550.00.

    I'm not sure what I can do to bring the max mag field length closer to the recommended values.

    During my search to better my understanding I found at :https://github.com/ArduPilot/ardupilot/blob/master/Tools/LogAnalyze...

    '# check for mag field length change, and length outside of recommended range
    if "MAG" in logdata.channels:
    percentDiffThresholdWARN = 0.25
    percentDiffThresholdFAIL = 0.35
    minMagFieldThreshold = 120.0

    maxMagFieldThreshold = 550.0'

    But couldn't find info on how to reduce the max mag field length.

  • I also have problems in this area. Yesterday I did the normal compass dance and was quite pleased with offsets at -11, 2, -35. Flew my quad and put the log through Mission Planner's Auto Analysis with the result Compass = good mag_field within limits 13.73%, max mag field length 679.10 which is higher than the recommended 550.00.

    I'm not sure what I can do to bring the max mag field length closer to the recommended values.

    During my search to better my understanding I found at :https://github.com/ArduPilot/ardupilot/blob/master/Tools/LogAnalyze...

    '# check for mag field length change, and length outside of recommended range
    if "MAG" in logdata.channels:
    percentDiffThresholdWARN = 0.25
    percentDiffThresholdFAIL = 0.35
    minMagFieldThreshold = 120.0

    maxMagFieldThreshold = 550.0'

    But couldn't find info on how to reduce the max mag field length.

    ArduPilot/ardupilot
    ArduPlane, ArduCopter, ArduRover source. Contribute to ArduPilot/ardupilot development by creating an account on GitHub.
  • MR60

    Same issue here. With latest 3.4, and latest mission planner auto log analyzer, I also get very good & low magnetic interferences but extremely high max magnetic field length, above the recommended value. My compass is external (internal disabled) and at least 10 cm away from any electronics.

    Is it a mission planner false indication or else what can explain such high values when nothing electrical is near the external mag ?

This reply was deleted.

Activity

Chris Anderson liked Zara Mae Pickering's profile
May 21
DIY Robocars via Twitter
RT @chr1sa: Donkeycar 4.4 released with tons of new features, including path learning (useful with GPS outdoors), better Web and Lidar supp…
Nov 27, 2022
DIY Robocars via Twitter
RT @NXP: We are already biting our nails in anticipation of the #NXPCupEMEA challenge! 😉 Did you know there are great cash prizes to be won…
Nov 24, 2022
DIY Robocars via Twitter
RT @gclue_akira: レースまであと3日。今回のコースは激ムズかも。あと一歩 #jetracer https://t.co/GKcEjImQ3t
Nov 24, 2022
DIY Robocars via Twitter
UC Berkeley's DIY robocar program https://roar.berkeley.edu/
Nov 24, 2022
DIY Robocars via Twitter
RT @chr1sa: The next @DIYRobocars autonomous car race at @circuitlaunch will be on Sat, Dec 10. Thrills, spills and a Brazilian BBQ. Fun…
Nov 24, 2022
DIY Robocars via Twitter
RT @arthiak_tc: Donkey car platform ... Still training uses behavioral cloning #TCXpo #diyrobocar @OttawaAVGroup https://t.co/PHBYwlFlnE
Nov 20, 2022
DIY Robocars via Twitter
RT @emurmur77: Points for style. @donkeycar racing in @diyrobocars at @UCSDJacobs thanks @chr1sa for taking the video. https://t.co/Y2hMyj1…
Nov 20, 2022
DIY Robocars via Twitter
RT @SmallpixelCar: Going to @diyrobocars race at @UCSDJacobs https://t.co/Rrf9vDJ8TJ
Nov 8, 2022
DIY Robocars via Twitter
RT @SmallpixelCar: Race @diyrobocars at @UCSDJacobs thanks @chr1sa for taking the video. https://t.co/kK686Hb9Ej
Nov 8, 2022
DIY Robocars via Twitter
RT @PiWarsRobotics: Presenting: the Hacky Racers Robotic Racing Series in collaboration with #PiWars. Find out more and register your inter…
Oct 23, 2022
DIY Robocars via Twitter
RT @Hacky_Racers: There will be three classes at this event: A4, A2, and Hacky Racer! A4 and A2 are based around UK paper sizing and existi…
Oct 23, 2022
DIY Robocars via Twitter
Oct 23, 2022
DIY Robocars via Twitter
Oct 19, 2022
DIY Robocars via Twitter
Oct 18, 2022
DIY Robocars via Twitter
RT @NeaveEng: Calling all UK based folks interested in @diyrobocars, @f1tenth, @donkey_car, and similar robot racing competitions! @hacky_r…
Oct 13, 2022
More…