搜索
bottom↓
12
返回列表 发新帖
楼主: armok

四轴飞行基础知识:PID算法资料(从羚羊拉过来的)

  [复制链接]

出0入0汤圆

发表于 2011-12-29 20:55:16 | 显示全部楼层
FFT算法??

出0入9汤圆

发表于 2011-12-29 23:11:00 | 显示全部楼层
不错mark

出0入0汤圆

发表于 2011-12-30 08:54:14 | 显示全部楼层
我也用PID 感觉我的定位不怎么好!为什么啊?!

出0入0汤圆

发表于 2011-12-30 09:47:58 | 显示全部楼层
回复【楼主位】armok  阿莫
-----------------------------------------------------------------------

好东西谢了

出0入0汤圆

发表于 2011-12-30 09:51:11 | 显示全部楼层
老大辛苦。收下了。

出0入0汤圆

发表于 2011-12-30 09:52:45 | 显示全部楼层
学习,顶一下

出0入0汤圆

发表于 2011-12-30 16:42:47 | 显示全部楼层
我也有份英文的,分享一下
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

出0入0汤圆

发表于 2011-12-30 19:36:05 | 显示全部楼层
对于PID算法,我还处于初学阶段,谢谢站长的无私奉献。

出0入0汤圆

发表于 2012-1-1 21:37:41 | 显示全部楼层
很吃力的尽力看懂之。。。

出0入0汤圆

发表于 2012-1-4 20:50:17 | 显示全部楼层
来看看  、

出0入0汤圆

发表于 2012-9-30 09:52:35 | 显示全部楼层
Thanks for sharing!

出0入0汤圆

发表于 2012-9-30 18:00:29 | 显示全部楼层
谢莫大、、thx

出0入0汤圆

发表于 2012-10-3 15:36:55 | 显示全部楼层
感谢站长!!!!

出0入0汤圆

发表于 2012-10-6 18:31:22 | 显示全部楼层
收下学习了
头像被屏蔽

出0入0汤圆

发表于 2012-10-6 21:13:18 | 显示全部楼层
不错,收藏了

出0入0汤圆

发表于 2012-10-9 18:27:10 | 显示全部楼层
请教一下,一般四轴飞行器用的是什么控制算法,pid吗,我是指一般,能飞的起来就行,不是说那些圣人

出0入0汤圆

发表于 2012-10-9 21:46:28 | 显示全部楼层
谢楼主,,好东西啊

出0入0汤圆

发表于 2012-10-11 17:30:23 | 显示全部楼层
收下了  感谢楼主

出0入0汤圆

发表于 2012-10-11 20:55:07 | 显示全部楼层
谢谢楼主了

出0入0汤圆

发表于 2012-10-12 16:54:24 | 显示全部楼层
这个不错……

出0入0汤圆

发表于 2012-10-12 23:53:34 | 显示全部楼层
好东西啦,收下

出0入0汤圆

发表于 2012-10-26 12:54:48 | 显示全部楼层
谢楼主!

出0入0汤圆

发表于 2012-10-31 10:44:49 | 显示全部楼层
so happy 楼主好人

出0入0汤圆

发表于 2012-11-2 16:05:07 | 显示全部楼层
好人哇!!!!

出0入0汤圆

发表于 2013-1-30 17:23:57 | 显示全部楼层
谢谢了  过几天学

出0入0汤圆

发表于 2013-1-31 11:35:19 | 显示全部楼层
收下了! 想找个时间开始动手,先充电。

出0入0汤圆

发表于 2013-1-31 11:55:51 | 显示全部楼层
下载下来,

出0入0汤圆

发表于 2013-2-4 09:23:46 | 显示全部楼层
谢谢分享|~~~~~~~~~~

出0入0汤圆

发表于 2013-2-4 17:22:32 | 显示全部楼层

版主辛苦了!下来学习下

出0入0汤圆

发表于 2013-2-6 00:46:03 | 显示全部楼层
好东西

出0入0汤圆

发表于 2013-2-16 10:22:49 | 显示全部楼层
多谢!!

出0入0汤圆

发表于 2013-2-16 13:15:25 | 显示全部楼层
收了,谢谢~~~~~~~~~~~~~~~~

出0入0汤圆

发表于 2013-2-22 13:33:13 | 显示全部楼层
学习参考了,谢谢分享快乐

出0入0汤圆

发表于 2013-2-22 13:48:55 | 显示全部楼层
谢谢  mark

出0入0汤圆

发表于 2013-2-26 20:17:32 | 显示全部楼层
谢谢。有用!

出0入0汤圆

发表于 2013-2-26 21:30:15 | 显示全部楼层
标记中~~

出0入0汤圆

发表于 2013-3-15 08:32:30 | 显示全部楼层
收下看看

出0入0汤圆

发表于 2013-4-7 21:30:09 | 显示全部楼层
感谢LZ啊。。收下啦

出0入0汤圆

发表于 2013-4-7 22:05:05 | 显示全部楼层
感觉不错,先收下

出0入0汤圆

发表于 2013-4-8 11:18:29 来自手机 | 显示全部楼层
学习了!感谢楼主分享!

出0入0汤圆

发表于 2013-4-8 16:31:41 | 显示全部楼层
谢谢,学习一下,分享快乐

出0入0汤圆

发表于 2013-4-8 19:37:21 | 显示全部楼层
下载了,谢谢分享

出0入0汤圆

发表于 2013-4-9 22:55:20 | 显示全部楼层
这个确实特别有用  学习了!

出0入0汤圆

发表于 2013-4-20 18:33:48 | 显示全部楼层
谢谢了,mark下

出0入0汤圆

发表于 2013-4-26 19:46:13 | 显示全部楼层
谢谢楼主分享!!

出0入0汤圆

发表于 2013-4-28 22:01:17 | 显示全部楼层
谢谢了。

出0入0汤圆

发表于 2013-5-7 08:59:19 | 显示全部楼层
好东西,先收下了,后面在仔细研究研究

出0入0汤圆

发表于 2013-5-17 17:13:30 | 显示全部楼层
谢谢了 不错的资料

出0入0汤圆

发表于 2013-5-18 09:41:47 | 显示全部楼层
谢谢了,对我来说不错

出0入0汤圆

发表于 2013-5-26 14:55:44 | 显示全部楼层
感谢楼主分享

出0入0汤圆

发表于 2013-5-26 15:02:03 | 显示全部楼层
多谢了。。。

出0入0汤圆

发表于 2013-5-26 18:32:15 | 显示全部楼层
谢谢阿莫,搞技术的很遇上这样一个站长不是就幸运二字能概括了

出0入0汤圆

发表于 2013-5-31 18:45:32 | 显示全部楼层
真的很需要。谢谢了

出0入0汤圆

发表于 2013-5-31 19:03:46 | 显示全部楼层
LZ 真是好人啊

出0入0汤圆

发表于 2013-5-31 20:19:48 | 显示全部楼层
收下了,够十个字了吗啊

出0入0汤圆

发表于 2013-6-18 13:56:34 | 显示全部楼层
已撸

收下了

出0入0汤圆

发表于 2013-6-18 23:00:26 | 显示全部楼层
貌似很厉害的说

出0入0汤圆

发表于 2013-6-19 10:06:15 | 显示全部楼层
收下了  谢谢楼主

出0入0汤圆

发表于 2013-8-12 22:31:27 来自手机 | 显示全部楼层
mark……
顶一个…

出0入0汤圆

发表于 2013-8-13 08:32:28 来自手机 | 显示全部楼层
这个算法是不是做四轴一定要用到?

出0入0汤圆

发表于 2013-8-13 08:53:29 | 显示全部楼层
收藏了额

出0入0汤圆

发表于 2013-8-13 12:55:36 | 显示全部楼层
谢谢 收着

出0入0汤圆

发表于 2013-8-13 13:14:11 | 显示全部楼层
收了,谢谢楼主!

出0入0汤圆

发表于 2013-8-19 17:12:53 | 显示全部楼层
                                   

出0入0汤圆

发表于 2013-8-20 21:55:56 | 显示全部楼层
学习一下

出0入0汤圆

发表于 2013-8-22 01:53:11 | 显示全部楼层
收藏之。。。

出0入0汤圆

发表于 2013-8-25 21:11:23 | 显示全部楼层
谢谢分享。下载了。

出0入0汤圆

发表于 2013-8-26 15:08:34 | 显示全部楼层
嗯嗯,正在搞呢

出0入0汤圆

发表于 2013-8-27 13:14:16 | 显示全部楼层
马克一下,回家了下载细看

出0入0汤圆

发表于 2013-8-28 11:24:53 | 显示全部楼层
谢谢了,学习学习

出0入0汤圆

发表于 2013-8-28 12:39:02 | 显示全部楼层
学习学习

出0入0汤圆

发表于 2013-8-28 16:32:28 | 显示全部楼层
感谢分享                        

出0入0汤圆

发表于 2013-8-29 10:20:34 | 显示全部楼层
好东西,收走~~~~~~~~~

出0入0汤圆

发表于 2013-8-29 15:22:13 | 显示全部楼层
好人一生平安

出0入0汤圆

发表于 2013-8-29 16:58:38 | 显示全部楼层
最近在学PID,这个好

出0入0汤圆

发表于 2013-8-29 18:14:47 | 显示全部楼层

收下了

出0入0汤圆

发表于 2013-9-29 14:58:22 | 显示全部楼层
新手必看的资料

出0入0汤圆

发表于 2013-10-3 01:18:41 | 显示全部楼层
收下了 O(∩_∩)O谢谢

出0入0汤圆

发表于 2013-10-5 12:44:20 | 显示全部楼层
学习了            

出0入0汤圆

发表于 2013-10-18 11:18:15 | 显示全部楼层
收一下!!!

出0入0汤圆

发表于 2013-11-21 14:29:01 | 显示全部楼层
我正准备要搞一个四轴航拍,需要的就是这个。

出0入0汤圆

发表于 2013-12-6 21:39:14 | 显示全部楼层
绝对的好东西,咱们论坛真万能!

出0入0汤圆

发表于 2013-12-6 22:46:05 | 显示全部楼层
好资料,很好,谢谢

出0入0汤圆

发表于 2013-12-6 23:21:55 | 显示全部楼层
学习~ 收了~            

出0入0汤圆

发表于 2013-12-7 10:09:53 | 显示全部楼层
下来了再慢慢看哈

出0入0汤圆

发表于 2013-12-7 11:09:31 | 显示全部楼层
多谢楼主,学习了

出0入0汤圆

发表于 2013-12-22 22:01:03 | 显示全部楼层
收下了,真需要这个

出0入0汤圆

发表于 2013-12-22 22:36:17 | 显示全部楼层

收下了!

出0入0汤圆

发表于 2013-12-23 08:25:32 | 显示全部楼层
顶一下,学习中

出0入0汤圆

发表于 2013-12-24 18:37:12 | 显示全部楼层
好帖,感谢楼主!!!

出0入0汤圆

发表于 2013-12-25 13:21:38 | 显示全部楼层
先mark下了

出0入4汤圆

发表于 2013-12-25 15:59:51 | 显示全部楼层
收下研究

出0入0汤圆

发表于 2013-12-26 18:17:32 | 显示全部楼层
好东西,已收下

出0入0汤圆

发表于 2014-4-6 19:55:03 | 显示全部楼层
完整的看完了一遍,感谢莫大

出0入0汤圆

发表于 2014-4-7 13:28:10 | 显示全部楼层
收下了,谢谢阿莫!

出0入0汤圆

发表于 2016-3-8 11:35:39 | 显示全部楼层
一直纠结于PID控制,很及时啊

出0入0汤圆

发表于 2016-3-8 17:10:58 | 显示全部楼层
mark
回帖提示: 反政府言论将被立即封锁ID 在按“提交”前,请自问一下:我这样表达会给举报吗,会给自己惹麻烦吗? 另外:尽量不要使用Mark、顶等没有意义的回复。不得大量使用大字体和彩色字。【本论坛不允许直接上传手机拍摄图片,浪费大家下载带宽和论坛服务器空间,请压缩后(图片小于1兆)才上传。压缩方法可以在微信里面发给自己(不要勾选“原图),然后下载,就能得到压缩后的图片】。另外,手机版只能上传图片,要上传附件需要切换到电脑版(不需要使用电脑,手机上切换到电脑版就行,页面底部)。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|Archiver|amobbs.com 阿莫电子技术论坛 ( 粤ICP备2022115958号, 版权所有:东莞阿莫电子贸易商行 创办于2004年 (公安交互式论坛备案:44190002001997 ) )

GMT+8, 2024-5-10 18:36

© Since 2004 www.amobbs.com, 原www.ourdev.cn, 原www.ouravr.com

快速回复 返回顶部 返回列表