APM drifts in loiter/position hold, alt hold is acceptable

I've read what I could find on the topic and most of them point to it being a compass or vibration issue.  Compass drifts slightly but stays in the correct direction +/- 5 degrees, so I don't think it's that.  compassmot was run which significantly improved compass.  Vibration looks acceptable to me, not the best but it should be low enough to hold position with toilette bowling or some drift.

Essentially what happens is as soon as it goes into loiter it starts drifting.  The most consistent drift is it pitching back and flying towards me.  Occasionally it drifts wherever I feel like.  I'm at a total loss of what to look at or try to tune.  If anyone could take a look at the logs and see if there is something I missed I'd appreciate it.

EDIT:  Using SimonK ESC's with 750kv motors, 9 inch props, on an HT-FPV frame with APM 2.5 and ArduCopter 3.0.1 loaded with default settings.

(ESC calibrated, compass/accel calibrated, compassmot run)

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

Join diydrones

Email me when people reply –

Replies

  • I've been going through the same thing with the same suggested fixes but even alt hold isn't reliable. It's not "toilet bowling" or anything regular. It's all seemingly random. Kind of like my daughter when she was 2. Sometimes it will just hover at 20 feet for 30 seconds and then just decide to land someplace 30 off diagonally in a random direction. Then after hitting the ground, will decide it would rather fly for a bit and go back into position but 30 ft off.

    I've been suspecting GPS glitch, barometer glitch, gremlins and ghosts but I think I've narrowed it down to "it's alive!"

    • well I'm going to order some new lipos then get back to testing I'm having the same problem but when I had the same gear on a 900mm tricopter with the gps away from propellers it seemed to work better now  have it on a 450mm with the gps close to prop and it will drift left to right about 30 feet or just keep going up slowly I need it to hold position so I can test a object Avoidance system I been working on hope to be back in the air in a few days

      • Well... Im been making som reserch and looks like there are too many recomendations I missed out about the magnetometer. 

        1) distance from power and motor wires >10cm ...mine was no more than 6cm.

        2) twisted wires... I leave all of them as flat as posible because they fold better ;-D

        3) compassmot utility ... I didnt used it.

        I will do all of them and maybe on sunday I can make some flight-crash tests.

        • did auto tune now flies a lot  better some drift but that could be the wind because it floats back to position

          • Hi.

            Last sunday I made field tests with the quad.

            It performs wel. litle unstable at first with the default params but next I did the auto tune and everithing worked OK.

            I dont know exactly what was the major isue because I made lots of changes.

            1. Changed the GPS.MAG to a better and taller stand. Away from power wires.

            2. Recalibrated the Mag.

            3. Do a CompasMot utility run.

            4. Corrected the pitch direction on the radio stick.

             

            Now, it flies well and can do a mission with WP etc. RTL and geo-Fence works well too.

            • Great mine flies great after auto tune please post video

        • Hi. 

          I put a new stand for the GPS-mag and calibrated both, the internal and external. CompassMot is stil pending.... and didn't do any field test yet.

          Last nght I found one of the mayor isuses on my configuration, beleave or not .. it was the radio. Pitch stick on the radio was on the wrong direction. When I push the stick forward the PWM increses to te value to 1900, so pixhawk tihinks it has to incress pitch and moves the copter backward.

          So any time I tried to get the copter back It goes out and I ended hard landing it. ;-)

          Looks like it's not the fist time it hapend. 

          http://diydrones.com/forum/topics/pitch-is-reversed-where-should-i-...

  • did you get this fixed Im having the same issue looking for answers

  • Try adjusting trims...
    • have you guys fixed the problem? I also have the same GPS module NEO-6M and I found a video showing how to configure this module. But mine does not have flash memory, so I cannot save the configs. Apparently the default config is to automotive filter and we should use pedestrian filter. I believe the GPS starts rotate because it thing it is in a car that cant just stop and go back, it tries to turn around to go back to the WP. Probably the solution is to buy another type of GPS or buy one whit configs for quads already stored in it.

      If someone have the problem solved just let me know. Thank you.

This reply was deleted.

Activity

DIY Drones via Twitter
Dec 12, 2021
DIY Robocars via Twitter
Dec 12, 2021
DIY Robocars via Twitter
RT @chr1sa: Just a week to go before our next @DIYRobocars race at @circuitlaunch, complete with famous Brazilian BBQ. It's free, fun for k…
Dec 4, 2021
DIY Robocars via Twitter
How to use the new @donkey_car graphical UI to edit driving data for better training https://www.youtube.com/watch?v=J5-zHNeNebQ
Nov 28, 2021
DIY Robocars via Twitter
RT @SmallpixelCar: Wrote a program to find the light positions at @circuitlaunch. Here is the hypothesis of the light locations updating ba…
Nov 26, 2021
DIY Robocars via Twitter
RT @SmallpixelCar: Broke my @HokuyoUsa Lidar today. Luckily the non-cone localization, based on @a1k0n LightSLAM idea, works. It will help…
Nov 25, 2021
DIY Robocars via Twitter
@gclue_akira CC @NVIDIAEmbedded
Nov 23, 2021
DIY Robocars via Twitter
RT @luxonis: OAK-D PoE Autonomous Vehicle (Courtesy of zonyl in our Discord: https://discord.gg/EPsZHkg9Nx) https://t.co/PNDewvJdrb
Nov 23, 2021
DIY Robocars via Twitter
RT @f1tenth: It is getting dark and rainy on the F1TENTH racetrack in the @LGSVLSimulator. Testing out the new flood lights for the racetra…
Nov 23, 2021
DIY Robocars via Twitter
RT @JoeSpeeds: Live Now! Alex of @IndyAChallenge winning @TU_Muenchen team talking about their racing strategy and open source @OpenRobotic…
Nov 20, 2021
DIY Robocars via Twitter
RT @DAVGtech: Live NOW! Alexander Wischnewski of Indy Autonomous Challenge winning TUM team talking racing @diyrobocars @Heavy02011 @Ottawa…
Nov 20, 2021
DIY Robocars via Twitter
Incredible training performance with Donkeycar https://www.youtube.com/watch?v=9yy7ASttw04
Nov 9, 2021
DIY Robocars via Twitter
RT @JoeSpeeds: Sat Nov 6 Virtual DonkeyCar (and other cars, too) Race. So bring any car? @diyrobocars @IndyAChallenge https://t.co/nZQTff5…
Oct 31, 2021
DIY Robocars via Twitter
RT @JoeSpeeds: @chr1sa awesomely scary to see in person as our $1M robot almost clipped the walls as it spun at 140mph. But it was also awe…
Oct 29, 2021
DIY Robocars via Twitter
RT @chr1sa: Hey, @a1k0n's amazing "localize by the ceiling lights" @diyrobocars made @hackaday! It's consistently been the fastest in our…
Oct 25, 2021
DIY Robocars via Twitter
RT @IMS: It’s only fitting that @BostonDynamics Spot is waving the green flag for today’s @IndyAChallenge! Watch LIVE 👉 https://t.co/NtKnO…
Oct 23, 2021
More…