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?


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

Join diydrones

Email me when people reply –


  • 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


      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.


      TCIII AVD 

  • Developer


    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.


DIY Drones via Twitter
RT @Struktur3D: We have just posted on @DIYDrones for the first time in a long time. Continuing with our search for a #lasercutting service…
DIY Robocars via Twitter
RT @chr1sa: The dev team is having fun with virtual @DIYRobocars track generation with Unity on the @donkey_car discord: https://t.co/l0Jd9…
DIY Drones via Twitter
Review of the new Nivida Jetson NX for robocars https://t.co/bWjd3sH2o4
DIY Robocars via Twitter
RT @chr1sa: My review of the new @NVIDIAEmbedded Jetson Xavier NX in robotics and @DIYRobocars applications https://t.co/O7TfJZhiF9 https:/…
DIY Drones via Twitter
RT @chr1sa: Somehow I missed this, but last week @Nvidia released a new version of its Isaac robot development framework. Lots of new Lidar…
May 31
DIY Robocars via Twitter
RT @Smartphone89: DonkeyCar Racing League Korea #donkeycar @diyrobocars https://t.co/mDlHDR1d98
May 29
Jørn Ramnæs liked VIDEO LINK's profile
May 28
Mark Harrison left a comment on Moderators
"Wow, Ning2 looks really great on mobile. I had sort of drifted away as my browse-time went more on my phone, so this is great."
May 28
DIY Robocars via Twitter
May 28
DIY Drones via Twitter
Welcome to the new DIY Drones design!. You may have noticed that DIY Drones looks a little different today. That's… https://t.co/cg2EmeDGMQ
May 27
DIY Drones via Twitter
New! Online Training on Drones for Disaster Response https://t.co/brqRuujjY2
May 26
DIY Robocars via Twitter
May 25
DIY Robocars via Twitter
RT @OttawaAVGroup: We are going to try something new this week. We will be having a drop-in style meeting Wednesday @ 7-9pm EST. Pop in and…
May 25
DIY Robocars via Twitter
RT @tawnkramer: Thanks Everyone for another fun virtual race! Amazing Ai racers competing head-to-head, Virtual Makers Fair event. Catch us…
May 23
DIY Robocars via Twitter
RT @make: Find out the latest from @diyrobocars at 10am PT from @chr1sa of @3DRobotics on Virtually Make Faire! #makerfaire #maketogether #…
May 23
DIY Robocars via Twitter
RT @Heavy02011: Join us Saturday online: Virtual Race League: @DIYRobocars Race #2 - Parking Lot Nerds https://t.co/aJUu4sdutx #Meetup via…
May 22