External Compass direction

Hi pilots,

If you look at the picture you see how I have mounted the external compass and GPS. The arrow the the direction it should be mounted. However I have not followed the direction because the wires come out of the left side of the module.

Ofcourse the compass direction is wrong now. If I point the nose north the direction it gives is not north.

How can I change this? By the way the APM itself is upside down so I have set AHRS_ORIENTATION to 8. The APM itself is pointing the correct way. The artificial horizon is correct.

So, I should correct the magnetometer readings. But how?

Capture.PNG

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

Join diydrones

Email me when people reply –

Replies

  • For some reason I can't get it to work. I may have found an explanation. When I turn the APM 2.6 itself the compass turns from south to north or whatever I point it to. So it seems the APM has an on board compass.

    I assume it would cause problems when there is an on board compass AND an external compass in the GPS module. Am I correct on this? If so I have to do this: http://copter.ardupilot.com/wiki/common-external-magnetometer-for-i...

    OR does the north, south, west indicator on the OSD also move according to the gyro sensors in the APM board and not only based on the compass?

    Last thing, can I fly auto missions with a crooked compass?

    Thanks and kind regards

  • It is very strange. No matter what yaw I set it to it still keeps pointing in the wrong direction. I give the APM a power cycle after I set the yaw of the compass.

    • Admin

      @testuser0001,

      You also have to remember that the compass is on the bottom of the GPS/Compass module so it is upside down. So not only do you have to change the yaw direction, as you have done, you must indicate that the compass is upside down.

      Regards,

      TCIII AVD 

  • Developer

    testuser0001,

    There are some instructions here on the copter wiki which show how to figure out what the orientation should be.

    • Thanks Randy for the link. Honestly I had already seen that. For some reason none of the orientations works good enough.

      The direction is correct i.e. move the plane left, the compass goes left and vice versa. But when I point the nose of the plane north it does not point north. It looks as though I cannot be compensated enough. It looks as if 270 degrees is not enough compensation.

      I hope this post make any sense.

      Kind regards

      • Moderator

        Reboot and redo compass calibration after changing compass orientation. Also check your declination is correct for your location.

        A small variation in direction is OK, ie 5-10°.

        • For some reason I thought this was a live adjustment. I was wrong.

          When I am able to work on my plane again I will check this. This should fix it I think.

          By the way, +90 degrees yaw should do the trick? I will check this out.

          Thanks for your kind help.

This reply was deleted.

Activity

DIY Robocars via Twitter
RT @TinkerGen_: "The Tinkergen MARK ($199) is my new favorite starter robocar. It’s got everything — computer vision, deep learning, sensor…
Monday
DIY Robocars via Twitter
Monday
DIY Robocars via Twitter
RT @roboton_io: Join our FREE Sumo Competition 🤖🏆 👉 https://roboton.io/ranking/vsc2020 #sumo #robot #edtech #competition #games4ed https://t.co/WOx…
Nov 16
DIY Drones via Twitter
First impressions of Tinkergen MARK robocar https://ift.tt/36IeZHc
Nov 16
DIY Robocars via Twitter
Our review of the @TinkerGen_ MARK robocar, which is the best on the market right now https://diyrobocars.com/2020/11/15/first-impressions-of-tinkergen-mark-robocar/ https://t.co/ENIlU5SfZ2
Nov 15
DIY Robocars via Twitter
RT @Ingmar_Stapel: I have now explained the OpenBot project in great detail on my blog with 12 articles step by step. I hope you enjoy read…
Nov 15
DIY Robocars via Twitter
RT @DAVGtech: This is a must attend. Click the link, follow link to read the story, sign up. #chaos2020 #digitalconnection #digitalworld ht…
Nov 15
DIY Robocars via Twitter
RT @a1k0n: Got a new chassis for outdoor races (hobbyking Quantum Vandal) but I totally didn't expect that it might cause problems for my g…
Nov 11
DIY Drones via Twitter
First impressions of the Intel OpenBot https://ift.tt/36qkVV4
Nov 10
DIY Robocars via Twitter
Nov 9
DIY Robocars via Twitter
Excellent use of cardboard instead of 3D printing! https://twitter.com/Ingmar_Stapel/status/1324960595318333441
Nov 7
DIY Robocars via Twitter
RT @chr1sa: We've got a record 50 teams competing in this month's @DIYRobocars @donkey_car virtual AI car race. Starting today at 10:00am…
Nov 7
DIY Robocars via Twitter
Nov 6
DIY Robocars via Twitter
RT @a1k0n: Car's view, using a fisheye camera. The ceiling light tracking algorithm gave me some ideas to improve ConeSLAM, and having grou…
Nov 5
DIY Robocars via Twitter
RT @a1k0n: To get ground truth I measured the rug, found the pixel coordinates of its corners, calibrated my phone camera with my standard…
Nov 5
DIY Robocars via Twitter
RT @a1k0n: @DIYRobocars is back in December, but outside. Time to reinvestigate ConeSLAM! I rigged up a quick and dirty ground-truth captur…
Nov 5
More…