Hi,

I've been playing around with my Quad-C APM2.5 v.2.9.1 to try to figure out why my compass is drifting. I have erased EEPROM, performed a light calibration of the compass, and selected auto learning in the settings. When doing a quick test I just now I observed the following.

When flying initially in stabilise I did not observe any drift, and the initial loiter was also good. After a short landing (getting disarmed and rearming) I performed a second loiter test, and this time it started rotating counterclockwise with a speed a bit less than 90° in one minute. The compass direction indicated in the mission planner always remained in the same direction and I was not giving any yaw input. As the angle increased, naturally loiter became more unstable. After bringing it back to stabilise mode I yield it back into its correct orientation, nose out with respect to myself. The indicated heading in the mission planner was now more than 90° clockwise to what it was supposed to be.

I then observed that it started rotating in the other direction, clockwise. I gave small corrections to keep it close out. It continued this behaviour until it had restored the original heading, with the compass in the mission planner now pointing the same direction as the nose of the copter.

I have several times seen it corrected itself while sitting on the ground, but this time it clearly corrected itself in the air. I suspect this has something to do with the auto learning? I was not flying around after terminating the loiter, I was manually hovering until the compass restored itself. If it is not the also learning kicking in, then I find it hard to believe that it is electric noise that is messing with the compass. On the other hand, if auto learning is correcting this, why can it correct during manual loiter, but not automatic loiter?

I have a few logs lying around, but I'm not sure what these can clarify compared to what I have attempted to describe here. I do not observe this behaviour with 2.9.0.

Any suggestions?

Thanks.

Edit:  The correct title should be that the compass is drifting clockwise since the copter is rotating counterclockwise, but I guess you get my meaning :-)

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

Join diydrones

Email me when people reply –

Replies

  • Hi all.

    I have detected the same problem with fw 2.9.1!

    I had tested with flight mode Simple Mode first, hexacopter flying well, the directions are correct as armed position. After activating Loiter changed the compass direction about 90 degrees in clockwiese. After new arming is the compass direction correct until activating Stable Mode. It can be reproduced every time.

    PosHold and RTL working well.

    GPS: NEO-6m

    Regards

This reply was deleted.

Activity

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
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
DIY Robocars via Twitter
RT @gclue_akira: レースまであと3日。今回のコースは激ムズかも。あと一歩 #jetracer https://t.co/GKcEjImQ3t
Nov 24
DIY Robocars via Twitter
UC Berkeley's DIY robocar program https://roar.berkeley.edu/
Nov 24
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
DIY Robocars via Twitter
RT @arthiak_tc: Donkey car platform ... Still training uses behavioral cloning #TCXpo #diyrobocar @OttawaAVGroup https://t.co/PHBYwlFlnE
Nov 20
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
DIY Robocars via Twitter
RT @SmallpixelCar: Going to @diyrobocars race at @UCSDJacobs https://t.co/Rrf9vDJ8TJ
Nov 8
DIY Robocars via Twitter
RT @SmallpixelCar: Race @diyrobocars at @UCSDJacobs thanks @chr1sa for taking the video. https://t.co/kK686Hb9Ej
Nov 8
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
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
DIY Robocars via Twitter
Oct 23
DIY Robocars via Twitter
Oct 19
DIY Robocars via Twitter
Oct 18
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
DIY Robocars via Twitter
RT @araffin2: 🏎️ After hours of video editing, I'm happy to share a best of my Twitch videos on learning to race with RL. 🏎️ Each part is…
Oct 13
More…