Weirdest compass behavior today. Please help!

I went out flying a couple of hours ago and noticed some really weird stuff going on like where loiter would start out ok and then begin to swoop around bigger and bigger until I would have to take over in a panic and after looking at everything my compass direction is going about 90 degrees off in about 1 minute once I get in the air.  I can land and over about a 30 second period it creeps back to either the correct heading or slightly past the correct direction the other way.  This happened every time i lifted off ground.  Prior to today, this has never been a problem, and I flew it a few times just yesterday.

So thinking it could be a motor or ESC that just started going bad and sending out interference, I came home and swapped my whole electronics stack over from my home built B revision copy to a real 3DR C frame with it's own motors, ESCs, PDB, etc.  It's always done fine in its short life, it's almost brand new but has 5-10 flights on it.  So with my APM 2.5, uBlox, 3DR radio, and AR8000 stack on that frame, it does the same exact thing but the compass heading drifts around to the opposite side!  As soon as I land it slowly comes back around to the correct heading. 

So then I put the electronics back on my B frame and did a setup > reset and set everything back up from scratch.  Just took it out a few minutes ago and the same problem, compass drifted a good 90 degrees off to the right within a minute.  Landed it and it came right back to correct heading. 

Help!

 

This is an APM 2.5 with uBlox and 3DR radio, Spektrum DX8, AR8000, 3DR standard motors, 3DR ESCs.

 

Here are the logs from the last flight after I did the reset and set everything back up from scratch.  I kept it pointed out almost perpendicular to the back of my house the whole time in the air, kinda pointed directly at that road that T's off in front of my back door neighbors.  You can see when I land and disarm how the compass heading swings back around and actually overshoots the actual direction a little.

 

 

 

 

2013-02-15 15-52-33.tlog

2013-02-15 15-56 2.kmz

2013-02-15 15-56 2.log

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

Join diydrones

Email me when people reply –

Replies

  • Guys i have an issue and ive had it for some time now, ive nearly lost my quad like 4 times over this issue. I could REALLY use some help.

    I am running the APM 2.5+, when in flight my controls change. Between pitch and roll the change half way through flight. The front of my quad will become the left and when i pitch forward, the quad will go right or visa versa.. This makes things EXTREMELY confusing. Then a power down and power up fixes things again for a while. I am sure this is compass related and i am unable to debug at the moment because i beleive there is a issue with the new 3DR Radios in the 433MHz range (interference from the usb power of something). I am not in simple mode and have "Use compass for yaw" (COMPASS_USE) enabled.

    Thanks for any help!

  • I went back out to the big field this morning and everything performed perfectly.  Compass direction was dead on, loiter was great, and I flew two different waypoint missions.  My auto-learned compass offsets have always been good and they remained unchanged from what I could tell during all this.  I noticed that today the satellite count was 10 to 12 and yesterday I think it was always 8 or 9, I'll go back and look at all the logs. 

    This is a long shot, but the asteroid that passed yesterday wasn't affecting anyone else's GPS signals was it? 

    Does the GPS signal affect the compass direction or is it 100% magnetometer derived? 

  • The power lines from battery or ESC could affect the compass if they are to close to APM.

    Try to keep fix your quad at the ground and just increase throttle (you would need to have the props in order to have high current/ampere in your motor and implicit in your power lines).

    In the same time look at the compass indication if it is moving. Should not move. If is moving, try to change the power line position vs. APM location. Hope this help

This reply was deleted.

Activity

Gremsy liked Gremsy's profile
Mar 12
DIY Robocars via Twitter
RT @chr1sa: Donkeycar 4.4 released with tons of new features, including path learning (useful with GPS outdoors), better Web and Lidar supp…
Nov 27, 2022
DIY Robocars via Twitter
RT @NXP: We are already biting our nails in anticipation of the #NXPCupEMEA challenge! 😉 Did you know there are great cash prizes to be won…
Nov 24, 2022
DIY Robocars via Twitter
RT @gclue_akira: レースまであと3日。今回のコースは激ムズかも。あと一歩 #jetracer https://t.co/GKcEjImQ3t
Nov 24, 2022
DIY Robocars via Twitter
UC Berkeley's DIY robocar program https://roar.berkeley.edu/
Nov 24, 2022
DIY Robocars via Twitter
RT @chr1sa: The next @DIYRobocars autonomous car race at @circuitlaunch will be on Sat, Dec 10. Thrills, spills and a Brazilian BBQ. Fun…
Nov 24, 2022
DIY Robocars via Twitter
RT @arthiak_tc: Donkey car platform ... Still training uses behavioral cloning #TCXpo #diyrobocar @OttawaAVGroup https://t.co/PHBYwlFlnE
Nov 20, 2022
DIY Robocars via Twitter
RT @emurmur77: Points for style. @donkeycar racing in @diyrobocars at @UCSDJacobs thanks @chr1sa for taking the video. https://t.co/Y2hMyj1…
Nov 20, 2022
DIY Robocars via Twitter
RT @SmallpixelCar: Going to @diyrobocars race at @UCSDJacobs https://t.co/Rrf9vDJ8TJ
Nov 8, 2022
DIY Robocars via Twitter
RT @SmallpixelCar: Race @diyrobocars at @UCSDJacobs thanks @chr1sa for taking the video. https://t.co/kK686Hb9Ej
Nov 8, 2022
DIY Robocars via Twitter
RT @PiWarsRobotics: Presenting: the Hacky Racers Robotic Racing Series in collaboration with #PiWars. Find out more and register your inter…
Oct 23, 2022
DIY Robocars via Twitter
RT @Hacky_Racers: There will be three classes at this event: A4, A2, and Hacky Racer! A4 and A2 are based around UK paper sizing and existi…
Oct 23, 2022
DIY Robocars via Twitter
Oct 23, 2022
DIY Robocars via Twitter
Oct 19, 2022
DIY Robocars via Twitter
Oct 18, 2022
DIY Robocars via Twitter
RT @NeaveEng: Calling all UK based folks interested in @diyrobocars, @f1tenth, @donkey_car, and similar robot racing competitions! @hacky_r…
Oct 13, 2022
More…