PID tuning theory and configuration guide for MultiRotorCraft

PID tuning theory and configuration guide for MultiRotorCraft

(CAVEAT- this is STILL under construction - feedback is wanted / needed)

Proportional-Integral-Derivative

When the MultiRotor orientation is changed in any pitch/roll/yaw axis, the gyros indicate an angular change from it's initial position. 
The MultiRotor controller records the original position and by utilising a "PID" program loop, drives the motors to attempts to return the MultiRotor to its initial position.
This is done my a combination of the measured angular deviation, sampling the change over time and predicting the future position. This provides enough information for the controller to drive the motors to return equilibrium. 

P is the dominant part of PID and gets you in the ballpark for good flight characteristics. 


Basic PID Tuning - on the ground

Set PID to the designers default recommended settings
Hold the MulitiRotor securely and safely in the air
Increase throttle to the hover point where it starts to feel light
Try to lean the MultiRotor down onto each motor axis
You should feel a reaction against your pressure for each axis. 
Change P until it is difficult to move against the reaction. Without stabilisation you will feel it allow you to move over a period of time. That is OK
Now try rocking the MultiRotor. Increase P until it starts to oscillate and then reduce a touch.
Rrepeat for Yaw Axis.

Your settings should now be suitable for flight tuning.


Advanced Tuning - understanding impact of P, I and D

P  - this is the amount of corrective force applied to return the MultiRotor back to its initial position. 
The amount of force is proportional to a combination of the the deviation from initial position minus any command to change direction from the controller input. 
A higher P value will create a stronger force to resist any attempts to change it's position.
If the P value is too high, on the return to initial position, it will overshoot and then opposite force is needed to compensate. This creates an oscillating effect until stability is eventually reached or in severe cases becomes completely destabilised.

Increasing value for P:
It will become more solid/stable until P is too high where it starts to oscillate and loose control 
You will notice a very strong resistive force to any attempts to move the MultiRotor 

Decreasing value for P:
It will start to drift in control until P is too low when it becomes very unstable.
Will be less resistive to any attempts to change orientation

Aerobatic flight: Requires a slightly higher P
Gentle smooth flight: requires a slightly lower lower P


I  - this is the time period for which the angular change is sampled and averaged. 
The amount of force applied to return to initial position gets is increased the longer the deviation exists until a maximum force value is reached
A higher I will increase the heading hold capability

Increasing value for I:
Increase the ability to hold overall initial position and reduce drift, but also increase the delay in returning to initial position
Will also decrease the importance of P.

Decreasing value for I:
Will improve reaction to changes, but increase drift and reduce ability to hold position
Will also increase the importance of P.

Aerobatic flight: Requires a slightly lower I
Gentle smooth flight: Requires a slightly higher I


D  - this is the speed at which the MultiRotor is returned to its original position. 
A higher D (as it is negative value this means a lower number - i.e. closer to zero) will mean the MultiRotor wil snap back to its initial position very quickly

Increasing value for D: (remember, that means a LOWER number as it is a negative value)
Improves the speed at which deviations are recovered 
With fast recovery speed comes a higher probability of overshooting and oscillations
Will also increase the effect of P

Decreasing value for D: (remember, that means a HIGHER number as it is a negative value - i.e. further from zero)
Reduces the oscillations when returning any deviations to their initial position 
Recovery to initial position becomes slower
Will also decrease the effect of P

Aerobatic flight: Increase D (remember, that means a LOWER number as it is a negative value - i.e. closer to zero)
Gentle smooth flight: Decrease D (remember, that means a HIGHER number as it is a negative value - i.e. further from zero)


Advanced Tuning - practical implementation

(at this moment - these are proposals only!)

For Aerobatic flying:
Increase value for P until oscillations start, then back of slightly
Change value for I until until hover drift is unacceptable, then increase slightly
Increase value for D (remember, that means a LOWER number as it is a negative value - i.e. closer to zero) until recovery from dramatic control changes results in unacceptable recovery oscillations
P may now have to be reduced slightly

For stable flying (RC):
Increase value for P until oscillations start, then back of slightly
Change value for I until recovery from deviations is unacceptable, then increase slightly
Decrease value for D (remember, that means a HIGHER number as it is a negative value - i.e. further from zero) until recovery from dramatic control changes becomes too slow. Then Increase D slightly (remember - lower number!)
P may now have to be reduced slightly


For stable flying ( AP / FPV):
Increase value for P until oscillations start, then back of slightly
Change value for I until recovery from deviations is unacceptable, then increase slightly
Decrease value for D (remember, that means a HIGHER number as it is a negative value - i.e. further from zero) until recovery from dramatic control changes becomes too slow. Then Increase D slightly (remember - lower number!)
P may now have to be reduced slightly

You will have to accept a compromise of optimal settings for stable hover and your typical mode of flying. Obviously factor it towards your most common style.


Other factors affecting PID
Taking known good PID values from an identical configuration will get you close, but bear in mind no two MultiRotors will have the same flying characteristics and the following items will have an impact on actual PID values:

Frame weight /size / material / stiffness
Motors - power / torque /momentum
Position - Motor-->motor distance
ESC / TX - power curves
Prop - diameter / pitch / material
BALANCING
Pilot skills

References
http://en.wikipedia.org/wiki/PID_controller
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器学习模型机器
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值