APM2 compass always swings back to NE.

It took me a while to notice this, in fact I did a test flight before without noticing the problem, so I'll post a video.

The compass in my APM2 swings back to between 20 and 50 degrees as soon as the unit sits still. It swings "correctly" while the unit is turning, but as soon as the unit sits still (no change in yaw) the compass starts swinging back to NW and settles there in around 5 to 10 seconds.

Here is a video that shows the problem. The video was filmed in late afternoon so you can tell west by the suns location. The ocean is to the east. The video starts with the plane facing roughly south. As you can see, the compass reading change while the plane is turning, but when ever I fly straight for a while the compass starts returning to NE.

https://www.youtube.com/watch?v=2hXhNrXwqXk

I thought there was something in the plane interfering with it, but I have removed the APM2 from the plane and sat it alone on a wooden bench with only the USB cable attached. The behavior is still the same.

Any thoughts anyone?

Eddie

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

Join diydrones

Email me when people reply –

Replies

  • Issue resolved

    After looking around a bit I found references to the manual calibration option in the compass hardware settings. I had entered a declination, but I hadn't calibrated the compass. This is a must do!

    After calibration the compass works great (funny that). Doing manual calibrations I found that rotating it slowly around each axis works better than spinning it quickly (slowly being 3-5 seconds per rotation, quickly being around 1 second).

    I hope this helps someone. :)

  • Update:

    I disabled the compass, figuring I could use GPS heading until the problem was resolved.

    I tried to confirm that the heading did not change when I rotated the APM2 after the compass was disabled, I reset the unit after disabling the compass.

    The heading still changes (although it shouldn't have) only now it works correctly and when the unit is still the heading stays fixed at the new value.

    However with the compass disabled in software I can't add my declination, so the heading is still incorrect.

    Now I'm quite confused.

This reply was deleted.

Activity

DIY Drones via Twitter
Review of the new Nivida Jetson NX for robocars https://t.co/bWjd3sH2o4
yesterday
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:/…
yesterday
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…
Monday
DIY Robocars via Twitter
RT @Smartphone89: DonkeyCar Racing League Korea #donkeycar @diyrobocars https://t.co/mDlHDR1d98
Friday
Jørn Ramnæs liked VIDEO LINK's profile
Friday
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."
Friday
Hank Deucker left a comment on PIXHAWK
"I am sure most will say not again, Pixhawk telemetry. I do need help and all can be reassured that I have spent many hours scouring the net for useful information. I am not new at quadcopter flying, I started in 2012 and have progressed through many…"
Thursday
DIY Robocars via Twitter
https://t.co/rLmFr8M2UK
Thursday
Hank Deucker left a comment on PIXHAWK
"Tomorrow, I am thinking about the wording at the moment."
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
https://t.co/8EMCvYW6oz
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
More…