PID controller tutorial and code for lane keeping

56 views (last 30 days)
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

Answers (1)

Dev
Dev on 27 Dec 2022
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 Comment
Matt Thomas
Matt Thomas on 30 Dec 2022
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:)

Sign in to comment.

Tags

Community Treasure Hunt

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

Start Hunting!