quadcopter controller implementation - yaw issue

Hi,

I really hope someone can help me out in here. I got into building my own quadcopter controller. All has been going well and had plenty of successful flights. The rate pid is on top of stab pid like described in here: http://ghowen.me/build-your-own-quadcopter-autopilot/

However ocassionally I do get a very strange behaviour. Basically, at certain position (flight angle), the quadcopter gets into a 'lock' and does not return to its neutral position. I can reproduce it when having the quadcopter in my hand. I basically rotate the quad around on 50% throttle and at certain angle the quad wants to fly consistently sideways rather than return to its netural position.

When I disable yaw pid all works as expected. When I enable it feels like the yaw is overshadowing quadcopter's pitch and roll stabilization efforts leading to a crash. It only happens when yaw gets significantly away from its target (like 20-30 degrees), due to for example wind gust.

Should there be a dedicated logic to deal with yaw, like for example disabling yaw stabilization when quadcopter has pitch or roll greater than 15 degrees? 

I tried to play around with yaw pid and decrese it but it did not seem to solve the problem.

Should I constrain the yaw pid to lets say 10% of the throttle? Would this be standard practice?

Thank you,

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

Join diydrones

Email me when people reply –

Replies

  • I put smaller propellers, removed Min/Max constrain on pid and introduced integral Ki value. This seems to solve it to great extend.

    Also I started to log the vibrations from accel and it looks like they are within +/- 0.65g

    I've read somewhere that some managed to get it down to +/- 0.1g. 

    What is the acceptable / ok level of vibrations?

    Also, how do people measure vibrations of a single motor? I suspect one of the motors might be causing more vibrations than others.

This reply was deleted.

Activity

Neville Rodrigues liked Neville Rodrigues's profile
Jun 30
Santiago Perez liked Santiago Perez's profile
Jun 21
More…