Developer

Arducopter Drift issues

I wanted to start a conversation around the roll and pitch of Arducopter drifting as you fly.

 

The reason is I just assembled new hardware and problems that weren't there before have now shown up in a bad way. Flying indoors in a 5ft space I was able to get up to 30° error in roll and around 10-15° in pitch. I was able to control it and it flew perfectly level the whole time, I just had to hold the stick into the corner of the radio. Lading and waiting corrects the issue.

 

What could cause this. I had been flying an older version of the IMU this whole time. This version has an analogue filter for the gyros where the new hardware has it as an option. You must solder the pads around the gyros to enable them. I was also flying with two slightly tweaked motors giving off a lot of vibration. This could affect the accels. 

 

My question is: If you have a problem like this, what is the vibration level on your copter, and do you have the filter pads soldered? 

 

And notice I didn't say "loss of control" or "it didn't fly stable". I had control, and it flew perfectly. It just lost it's reference to the ground and I had to compensate with the stick. Had it been worse than 45° I would have lost control. 

There are three pairs of pads, each with a white outline. (look for GYRO-XY near the relay).

Jani Solders his to enable the filter. I have never flown this board until now. I will solder them to test the filters this week.

3690871683?profile=original

 

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

Join diydrones

Replies are closed for this discussion.

Replies

  • It seems strange that some of us have this problem, while others do not. We all use the same hardware, except one little thing.. I came to think of the dip switches on the board. Is the DIP switches in use by Arducopter code? In ArdupiratesNG the DIP switches is used to activate stable/acro mode etc. I have not touched this after loading Arducopter code. Is there any chance some hidden settings are still configured by the DIP switches, causing drift problems..?

  • I have tested with and without(disconnected from board) magnetometer, same results.
  • Jason, are you flying with the magnetometer? If so, can you try it without the mag? I had this problem a couple months ago when I lost one of my hexas in the woods. As soon as I took off the mag, I've never had this problem again.
  • I just did some tests with the 2.0.20 and 23 code.

    There was absolutly no wind outside.

    Both codes flew very stable and I had full control. Very very little drift.

    Did some agressive maneuvers and looked at drift again. I noticed nothing special.

    The only difference with last time was the wind. But the drift was in all directions. And very uncontrolable.

    Strange.

  • I soldered all 3 pads, level w/ CLI,  The YAW still seems weird.  I'll re-charge then test again.
  •   Last night I got my replacement Tx and got to fly the new code for the first time.  The last time I flew was before the new code was released.  I was running the PiratesNG code.   Now that I have tried both I notice the quad still drifts forward and wants to turn clockwise a little.   Before I could get it to hover I had to use trim.  I changed to a totally new airframe and switched from + to X.  The drift problem to me seems the same from one code to the next...  Should I try soildering the pads???  When I set my quad up with the mission planner I made sure to level the APM,  But when I went to the raw sensor screen and viewed the radio inputs and outputs they didn't add up.  I noticed that with my quad sitting level as I increased the throttle it was adding more power to the back motors.  I added trim with the Tx until they worked as should.  Then I tried to hover.  It fly's....... yeah! sweet.....  
  • Hello every one. I think I have an idea what's going on here. This is all theory as I have no actual data yet (haven't finished my tri yet). I have been following this problem since I saw the discussion.The schematics and device shorcuts are on my desktop cause I look so much(what a geek!). From all the available data I see 2 factors, aggressive maneuvering and vibration. This brings me back to my original suspicion, gyro saturation, exasperated by vibration. In Jason's old board the analog filtering was handling it. Remember, this is not real vibration, which would be perpendicular to the shafts, but aliasing artifacts from the gyros, and mimicking rate vibration in the X/Y, like the gyros would output. I haven't looked, but I would expect digital filtering in the code.

      The gyro limit is 500 deg/s. I could see a powerful quad exceeding this if it was commanded to. If the aliased frequency gets thru the analog filter(or lack of) then it in addition to the true DC signal could cause saturation and result in a offset X/Y DCM solution. Think of a sine wave on top of the true signal. If the digital filter is averaging, it's not a problem. If you reach the limit then the solution is crap.

     What we need to do is get some real (analog scope) data. In the mean time we could:

    1) use the analog filters

    2) limit aggressive maneuvers

    @ Jason, I think your approach is a fix to a problem. We need to prevent the problem if possible. What if your flying at high tilt/speed? It would try to correct. Check for speed? It gets complicated.I would keep it in for a back up if you could(mem).

     I propose that there is a throttle differential limit. It would be adjustable for the airframes specific moment, and you would have to have the throttle input some where in there. The limit setting would be found through flight testing or a conservative default setting.

    I hope this helps. Now get to work Jason! ;)

  • Jason,

     

    There was a discussion earlier this winter regarding noise in the gyros.

    I believe that I showed then that there is aliasing in the sampling of the gyros, i.e. the built in lowpass filter of the gyros is far from beeing strong enough and/or the sampling rate is way to low.

    This was with motors without propellers on my desktop, i.e. I presume that with propellers the problem might be elevated considerably.

     

    I did some experiments in order to increase the sampling rate and implement in software antialiasing filter, but unfortunatly the CPU is hardly powerful enough for that solution. So I think the only real solution for our setup is to have good analog filter applied to the gyros. It looked to me that the interference from the vibration is so strong that a higher order filter is needed.

  • Sorry Jason, it's been a long day. are you aying to solder these and that will be the supported configuration for future Arducopter releases or just that's why you couldn't reproduce the problem?

    Regards

    D
  • Does this drift issue maybe crossover into the Tx stick drift issue? 
This reply was deleted.

Activity

gotham liked gotham's profile
15 hours ago
DIY Robocars via Twitter
RT @RoboticMasters: Monaco GP Circuit in the Donkey Sim (coming soon). Including buildings, tunnel and all! https://github.com/robotics-masters/sim-donkeycar-f1/tree/f1-tracks @diyr…
Wednesday
DIY Robocars via Twitter
RT @breadcentric: Here are the details of #AWSDeepRacer finals: https://blog.deepracing.io/2020/12/01/aws-deepracer-league-finals-2020-round-1-schedule/ #awsreinvent2020 #AWSreInvent https://t.co/ovqsjp8V…
Wednesday
DIY Robocars via Twitter
RT @breadcentric: #AWSDeepRacer League #awsreinvent2020 Open race is on Dec 1st - Dec 31st in three categories, 15 DeepRacer Evo (with LIDA…
Wednesday
DIY Robocars via Twitter
RT @a1k0n: @SmallpixelCar @diyrobocars It's just something that's easy to track with chroma keying. I ended up using different colors on th…
Monday
DIY Robocars via Twitter
Monday
DIY Robocars via Twitter
RT @TinkerGen_: "The Tinkergen MARK ($199) is my new favorite starter robocar. It’s got everything — computer vision, deep learning, sensor…
Nov 23
DIY Robocars via Twitter
Nov 23
DIY Robocars via Twitter
RT @roboton_io: Join our FREE Sumo Competition 🤖🏆 👉 https://roboton.io/ranking/vsc2020 #sumo #robot #edtech #competition #games4ed https://t.co/WOx…
Nov 16
DIY Drones via Twitter
First impressions of Tinkergen MARK robocar https://ift.tt/36IeZHc
Nov 16
DIY Robocars via Twitter
Our review of the @TinkerGen_ MARK robocar, which is the best on the market right now https://diyrobocars.com/2020/11/15/first-impressions-of-tinkergen-mark-robocar/ https://t.co/ENIlU5SfZ2
Nov 15
DIY Robocars via Twitter
RT @Ingmar_Stapel: I have now explained the OpenBot project in great detail on my blog with 12 articles step by step. I hope you enjoy read…
Nov 15
DIY Robocars via Twitter
RT @DAVGtech: This is a must attend. Click the link, follow link to read the story, sign up. #chaos2020 #digitalconnection #digitalworld ht…
Nov 15
DIY Robocars via Twitter
RT @a1k0n: Got a new chassis for outdoor races (hobbyking Quantum Vandal) but I totally didn't expect that it might cause problems for my g…
Nov 11
DIY Drones via Twitter
First impressions of the Intel OpenBot https://ift.tt/36qkVV4
Nov 10
DIY Robocars via Twitter
Nov 9
More…