PID controller tutorial and code for lane keeping

28 次查看(过去 30 天)
I am trying to find a full tutorial on how to create a basic PID controller for lane keeping in a "self driving rc car" in simulink and i need the code for it. This is just for expiermentation and observation purposes so i can see how it all works and what not. I do not know hwo to program, hence the full tutorial and code. But i do have a friend who knows some programming. My goal is to see a full blown example with code and simulink PID controller so i can look at it and see how it works.
I have searched the internet and found papers and lectures, but never "here is an sctual simulink PID controller and code for you to mess with"
I found this, but again, no simulink or actual code to test out, unless i missed it
thank you very much for the help. I know i am litterally asking for some one else to do the work for me, but its like learning anything new, you ahve to start somewhere.
EDIT:
I should mention that i have had a controls class and i do understand some basics of PID

回答(1 个)

Dev
Dev 2022-12-27
Hi,
You may find this video tutorial useful, it is about how you can use systematic and automated ways to quickly design and implement different types of controllers, ranging from PID controllers to model reference adaptive controllers, https://www.mathworks.com/videos/pid-control-made-easy-81646.html .
You may use the following command to open the Lane keeping Assist Simulink test bench model:
openExample('autonomous_control/LaneKeepingAssistWithLaneDetectionExample')
You can further look inside different subsystems by double-clicking on it and look inside a mask subsystem by selecting the model and pressing "ctrl+u" .
  1 个评论
Matt Thomas
Matt Thomas 2022-12-30
thank you very much. I will check this out and see how it all works. If i have anymore questions, ill be sure to ask:)

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 PID Controller Tuning 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by