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 Robocars via Twitter
RT @SmallpixelCar: Test my algorithm on real car https://t.co/idWRxcrmuK
DIY Robocars via Twitter
RT @breadcentric: Evo is coming to town. If you have an #AWS #DeepRacer, you can purchase an extension pack! https://t.co/w60JwI98Hp #Machi…
DIY Robocars via Twitter
DIY Drones via Twitter
RT @chr1sa: My talk on PX4 and FAA certification is coming up at 1:45 PST today on the PX4 Dev Summit livestream. Includes some cool new st…
Jul 7
DIY Drones via Twitter
RT @seesharp: I'm tuned into the PX4 / Dronecode free live conference. Great stuff. Microsoft AirSim talk in 10 minutes. https://t.co/0zbZ2…
Jul 6
DIY Robocars via Twitter
RT @masato_ka: 距離センサを3つとESP32を付けたラジコンカーをDonkeyCarライクにNNで自動走行。3層FC極小モデルをTensorFlow Lite for microcontrollerで動かしてる。機体は借り物でRumiCarって言います。Tenso…
Jul 5
DIY Robocars via Twitter
RT @SmallpixelCar: My car was able to go all the way autonomously until the crosswalk. It was only 100 yards from the target. What should b…
Jul 4
Liam left a comment on Agricultural UAVs
I'm Liam from T-MOTOR. I would like to reach out to see if there is any possibility for us to work together.
We are a propulsion system manufacturer who offers motors, propellers and ESCs for all kinds of drone applications which vary from secur…"
Jun 30
DIY Robocars via Twitter
RT @SmallpixelCar: Smart move. The car used the shadow to guide it through the bridge. This was never in the training samples. But it learn…
Jun 30
DIY Robocars via Twitter
RT @SmallpixelCar: Getting closer to the target. Single camera. Untrained road. https://t.co/Wsr7RwDamj
Jun 29
Richard Cox left a comment on Australia
"Anyone in the DIYDRONES Australian subgroup based in Alice Springs, NT?
I am experimenting with Ardupilot (standard Arduplane), Pixhawk 4 FC in a 4-ch
RC "AXN Floater Jet" foamy plane..."
Jun 29
Omar Sykes left a comment on Australia
"Hi everyone, I am looking for someone who is good at drone building, repair and software in Adelaide. Please give me a call on 0477 319 219."
Jun 29
DIY Robocars via Twitter
RT @RoboticMasters: #donkeycar https://t.co/czuLoVRcA4
Jun 29
DIY Robocars via Twitter
Jun 29
DIY Robocars via Twitter
RT @RoboticMasters: Donkey car, car car car car car car; Donkey car, car car car car car car; Donkey Car. Anyone like our tiny tiny donkey…
Jun 29
DIY Robocars via Twitter
RT @SmallpixelCar: After improving DBSCAN speed, I can get 11 frame per second on @NVIDIAEmbedded Jerson Xavier MAXN mode and the autonomou…
Jun 26