Hello guest, if you read this it means you are not registered. Click here to register in a few simple steps, you will enjoy all features of our Forum.
This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Question about tuning the different parts of PID controller (Roll, Pitch, Yaw)
#1
Pardon my ignorance if this has been answered somewhere already but I am slightly confused when it comes to tuning the different components of the PID controller (ie roll, pitch, and yaw). I assume you can follow the standard procedure for P gains for all (meaning raise it until you get oscillations and then back it off a bit), but how would you tune I and D for the different axes? For roll do you just angle it on the roll axis and see if it holds its position rather than leveling off? I'm completely lost of what I would do for yaw :p. Any help is much appreciated!  Big Grin
Reply
Login to remove this ad | Register Here
#2
Have a look here: https://github.com/borisbstyle/betafligh...ning-Guide

Its the betaflight wiki but the principle is the same.

for tuning the I term basically you want to angle the quad forward and fly away. increase throttle as needed to maintain height. After you have achieved forward flight and returned the stick to centre the quad should remain at the same angle you set off at. If it pitches back up, you need more I on pitch.

The same principle applies to roll too. Roll it left or right, centre stick, maintain altitude with throttle. If it stays at the angle you moved it to, you are good. If it levels back out on its own, raise I.

For D i do flips and rolls. If it wobbles when you stop the roll or flip then increase D a little on the axis you are testing. Hard 180 turns are a good test for this too. Also throttle punches are a good test for D term. Punch the throttle so the quad shoots up. when it gets some decent height, drop the throttle low so it falls. if it wobbles as it comes down (prop wash oscillation) you can raise D a little.

For yaw, give it roughly 50% stick deflection and release the stick. You want it to stop sharply but not so sharply that is disturbs the altitude or makes the quad drop on the roll or pitch axis. You need to find the balance between stopping sharply enough when you give a fast yaw input and it not making the quad rise or fall or dip an arm in one direction or another. Raising D a little can help smooth out the dip when you centre the yaw if you are seeing that.
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  random uncommanded yaw issue in flight? husafreak 30 930 16-Jan-2024, 05:32 AM
Last Post: husafreak
  Help question on windows 11 roger74 4 345 15-Aug-2023, 11:51 AM
Last Post: roger74
  Help A question about range extenders... graywoulf 0 168 17-Jun-2023, 05:26 PM
Last Post: graywoulf
  What to build next with these parts B4tn 2 174 13-Jun-2023, 01:16 AM
Last Post: Pathfinder075
  Rate tuning B4tn 3 386 24-May-2023, 05:02 PM
Last Post: Rob3ddd


Login to remove this ad | Register Here