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

Liam left a comment on Agricultural UAVs
"Hi
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…"
Wednesday
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…
Wednesday
DIY Robocars via Twitter
RT @SmallpixelCar: Getting closer to the target. Single camera. Untrained road. https://t.co/Wsr7RwDamj
Tuesday
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..."
Tuesday
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."
Tuesday
DIY Robocars via Twitter
RT @RoboticMasters: #donkeycar https://t.co/czuLoVRcA4
Monday
DIY Robocars via Twitter
https://t.co/DKQbNTbz0g
Monday
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…
Monday
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
DIY Robocars via Twitter
RT @Heavy02011: Join us at next Virtual Race League: ⁦@diyrobocars⁩ Race #4 - Parking Lot Nerds, August 1st https://t.co/5KUpu7VGaH
Jun 25
DIY Robocars via Twitter
RT @SmallpixelCar: #CUDA implementation should be easy, because most of the time is on distance calculations berween two points and if the…
Jun 25
DIY Robocars via Twitter
RT @SmallpixelCar: This is the view from the car. Even my lanenet inference is fast on @NVIDIAEmbedded Jerson Xavier, DBSCAN clustering tak…
Jun 25
DIY Robocars via Twitter
RT @SmallpixelCar: Ran my car in the park, with single camera and @sparkfun IMU. #TensorRT on @NVIDIAEmbedded Jetson Xavier. Lanenet one fr…
Jun 24
DIY Robocars via Twitter
RT @SmallpixelCar: Making progress on drive the car autonomously in my neighborhood. This run used single camera only. No other sensors. ht…
Jun 24
DIY Robocars via Twitter
RT @chr1sa: The @DIYRobocars/@donkey_car AI racers are getting *fast* in the simulator, in part because it's so well optimized for reinforc…
Jun 21
DIY Robocars via Twitter
RT @DAVGtech: Yesterday we had a ten year old in Canada racing a sixteen year old in France. This is a truly unique community and opportuni…
Jun 21
More…