Too Much Oscillation, not stable

Hi all,

     I realize many of you have better things to do however I am in need of some serious help. As a senior project, my group and I decided to try our hands at building a quadcopter after becoming fans of this site years ago. We honestly didn't think it would be difficult as the parts lists are widely documented as is the code. However we added  twist to ours, it was to be autonomous (all we were looking for was take off, hover, land). This proved to be the most difficult thing any of us have worked on. I was wondering if you geniuses might take a look at our rudimentary code and tear it apart for us and maybe let us know what to focus on. Here is the link http://pastebin.com/7r8G0vVt . We are using a DJI Flame Wheel kit with 10" props. 30A ESC'S and 6 degrees of freedom from sparkfun. Our main problem is that the quadcopter tries to stabilize but after a certain amount (say 20 degrees or 15 degrees) is read from the gyro, it quickly flips itself and is unable to compensate from there. If any more information is needed I would be glad to oblige.

Thanks

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

Join diydrones

Email me when people reply –

Replies

  • Quickly flipping sounds very odd. Have you done the motor test to make sure that the motors are connected in the right places and the gyros are correcting correctly and nothing is backwards or rotated?

    The motor test is generally something like this:

    https://www.youtube.com/watch?v=7Ss5kevS_g0

    If you could provided video of your issue it would be much easier to understand. Please include the transmitter in the video if you can so we can see the inputs.

  • Forgot to say, we are using an atmega2560 to control everything

This reply was deleted.

Activity