无人驾驶14:PID控制器实例

这是优达学城PID控制器项目实现,这个调试方法是做项目时,mentor给的建议,实践中,效果还蛮不错~~

PID Controller

the project require to create a PID Controller for the vehicle on the high way.

PID effectons

  1. P Controller is a based controller.

when the car ran with small cte, it had a small oscillation. But when the car truned the curve, the cte became larger and the controller began a big oscillation.

  1. D Controller create small cte change rate;

  2. I Controller, It sum a lot of cte;

To tune a PID, I will take some steps below:

step1:create a PID Controller class, and set the parameter of P’s, I’s, D’s to zero;

step2: increase P gain until the response to a disturbance is steady oscillation;

P.png)

step3: Increase the D gain until the oscillations go away;
/PD.png

step4: Repeat step2 and step 3, until increasing the D gain does not stop the oscillations;

step5: Increase the I gain until it brings you to the setpoint with the number of oscillations desired(normally zero);

/PID.png
实现代码:
https://github.com/luteresa/P8-PID-Control.git

  • 1
    点赞
  • 10
    收藏
    觉得还不错? 一键收藏
  • 9
    评论
评论 9
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值