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 diydrones2 to add comments!

Join diydrones2

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

Hank Deucker left a comment on PIXHAWK
"Tomorrow, I am thinking about the wording at the moment."
10 hours ago
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
23 hours ago
DIY Drones via Twitter
New! Online Training on Drones for Disaster Response https://t.co/brqRuujjY2
Tuesday
DIY Robocars via Twitter
https://t.co/8EMCvYW6oz
Tuesday
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…
Monday
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…
Sunday
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 #…
Saturday
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…
Saturday
DIY Robocars via Twitter
RT @donkey_car: Yay, we are part of the virtual @makerfaire with @diyrobocars. Come see our race or better yet train a model and race with…
May 21
DIY Robocars via Twitter
RT @chr1sa: The @DIYRobocars Virtual AI Race is going to be part of the virtual @makerfaire on Sat! https://t.co/wnMDAboLID
May 20
DIY Robocars via Twitter
RT @tawnkramer: Please join us next week for our second DIYRobocars online race. We will be using a new Mountain Track course! https://t.co…
May 19
DIY Robocars via Twitter
RT @SmallpixelCar: I realized that the size of the cones in @diyrobocars is known. If we can detect the bounding box, which can be done wit…
May 19
DIY Drones via Twitter
RT @chr1sa: Our next @DIYRobocars autonomous car virtual race is this Saturday. Sign up here to compete or just spectate on @Twitch https:/…
May 19
DIY Drones via Twitter
Definitive Guide to Setup Drone Delivery System https://t.co/7ibwcgF24h
May 19
DIY Robocars via Twitter
RT @DAVGtech: The next @diyrobocars virtual robocar race is this Saturday. One of many interesting issues we are taking a stab at is "how c…
May 18
DIY Robocars via Twitter
RT @chr1sa: cc @DIYRobocars @donkey_car https://t.co/ewbyqZ3xC0
May 18
More…