Replace linear predictive drivers with PID controllers
조회 수: 4 (최근 30일)
이전 댓글 표시
I would like to control the gas pedal, brake pedal, steering and transmission through PID controllers, I have a Simulink model that is somewhat similar to the examples from Matlab ( Three-Axle Tractor Towing a Three-Axle Trailer) but I would like to delete the Bolck Driver Commands and Replace with PID controller. can someone help me, how can i do that.
댓글 수: 0
답변 (3개)
Sam Chak
2022년 8월 23일
I guess you can select the "Driver-input-to-the-vehicle" Block, by moving your mouse cursor over the block and clicking on it. Then hit the [DELETE] key on your keyboard.
Next, find the "PID controller" block in the Simulink Library, insert the block by dragging it over to the void where you just deleted the previous block. Connect the signal arrows manually if the program doesn't do it automatically.
댓글 수: 0
Waseem Shatto
2022년 8월 24일
댓글 수: 1
Sam Chak
2022년 8월 24일
No worries. I'm not familiar with the Three-Axle Tractor Towing a Three-Axle Trailer. However, if you can provide the mathematical models (either transfer function or state-space) for the acceleration, deceleration, steering and gear transmission, then I think it is possible to try using the PID Controller blocks.
Waseem Shatto
2022년 8월 24일
댓글 수: 2
Sam Chak
2022년 8월 24일
Please reply in the Comment section, below my Answer or your Question.
You don't have to worry about the PID thing now. Focus on deriving the mathematical models because they are required for the PID tuning.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!