MP Pointing Wrong Direction

Hi Guys , 

I've been using the APM 2.6 (No internal compass) with the NEO-M8N GPS+Compass via I2C. My compass directions are very inconsistent. I've done calibration several times but the direction is wrong. 

When I point north -> Heading shows north - 15 degrees

When I point south -> Heading shows south - 15 degrees

When I point East   -> Heading shows east but drifts until it shows South

You can see it in the attached YouTube video - https://www.youtube.com/watch?v=sD5MoYczz4g

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

Join diydrones

Email me when people reply –

Replies

  • Hi,

    Assuming your APM and GPS are both pointing in the same direction my guess is your compass+GPS orientation is incorrect.

    MP defaults to an orientation of 180 degrees which may not be correct for your particular module.

    I had similar issues with an M8N and resolved them by selecting: ROTATION_ROLL_180_YAW_270

    You can also try entering your declination manually.

    • Thanks Crady you've been super helpful, I got rol_180_yaw_45 work for me. I'll try out a flight today and let you know how it goes. Do you fly a wing too?
      • Was your test flight a success?

      • Huzzah! That is awesome. Really glad you got it sorted.

        I don't currently have any fixed-wing aircraft but I'm planning to do a build in the Fall.

    • Thank you, could you send me a picture of the forward facing direction for the orientation of roll 180, yaw 270? It'd be very helpful!
      • No need for a photo as you don't physically roll or yaw your GPS+compass module. The settings have to do with how the unit was assembled (assuming the module is pointing north). 

        Start with the module mounted normally -- GPS antenna facing up and the arrow pointing north -- then try different orientations in the drop-down list.  Select an option, then return to the Flight Data screen to see what difference you made.

        You'll know you have it right when you can rotate your plane and both the GPS and compass point north and rotate in the same direction. If the roll is set incorrectly then as you rotate your craft the GPS and compass will move in opposite directions.

        After that you can re-calibrate and you should be good to go.

        =)

        • 3702795178?profile=originalThe reason I ask for a photo is because my m8n didn't come with an arrow :( I was wondering how you positioned yours.

          • Aha!  If yours was assembled like mine (and it seems to be) then viewed from the top, assume the wires plug into the 'south' end which places 'north' at the opposite end (ie your photo has W at the top, S to the right, and N to the left).

            As an aside, you can make your own arrow by waiting until the GPS gets a lock and then seeing which way it points in MP ; )

This reply was deleted.

Activity

DIY Robocars via Twitter
RT @donkey_car: New Maintainers! Donkey Car 4.0 and more! Here is our September Newsletter! https://donkeycar.substack.com/p/september-donkey-newsletter?r=2ji2t&utm_campaign=post&utm_medium=web&utm_source=copy
43 minutes ago
DIY Robocars via Twitter
RT @chr1sa: Kinda cool that we just hit 2,500 members of our Bay Area self-driving car racing league. More than 10k globally. Fast, cheap…
43 minutes ago
DIY Robocars via Twitter
RT @chr1sa: Our next @DIYRobocars virtual AI car race is next Saturday. Compete from home using the @donkey_car simulator -- no physical ca…
yesterday
DIY Robocars via Twitter
RT @RoboticMasters: Students from @Sydney_Uni working hard on improvements and changes to @donkey_car simulator. @diyrobocars @adafruit…
yesterday
DIY Robocars via Twitter
Practice virtual race this Saturday; the real thing will be on Oct 3 https://www.meetup.com/DIYRobocars/
Wednesday
DIY Robocars via Twitter
Wednesday
Derrick Davies liked lisa TDrones's profile
Wednesday
DIY Robocars via Twitter
Sep 21
DIY Robocars via Twitter
RT @SahikaGenc: AWS DeepRacer & Hot Wheels Track https://youtu.be/4H0Ei07RdR4 via @YouTube
Sep 14
DIY Robocars via Twitter
Sep 8
DIY Robocars via Twitter
RT @davsca1: We are releasing the code of our Fisher Information Field, the first dedicated map for perception-aware planning that is >10x…
Sep 8
DIY Robocars via Twitter
RT @SmallpixelCar: How this works: 1)object detection to find cones in single camera image, 30 frames/sec on @NVIDIAEmbedded Xavier. 2)comp…
Sep 8
DIY Robocars via Twitter
RT @SmallpixelCar: Use two color cones to guide the robocar. No map needed, on onsite training needed. Just place the cones and it will fol…
Sep 7
DIY Robocars via Twitter
Sep 7
DIY Robocars via Twitter
RT @roboton_io: Great to see http://roboton.io running at 60fps on the cheapest #chromebook we could find! #edtech #robotics #educat…
Sep 3
DIY Robocars via Twitter
RT @openmvcam: Crazy in-depth article about using the OpenMV Cam for Astrophotography: https://github.com/frank26080115/OpemMV-Astrophotography-Gear https://t.co/BPoK9QDEwS
Sep 3
More…