Replace linear predictive drivers with PID controllers

10 次查看(过去 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.

回答(3 个)

Sam Chak
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.

Waseem Shatto
Waseem Shatto 2022-8-24
ok thanks, i know what i really need is: correct control for this controller, i.e. which inputs have an influence on the acceleration and which on the deceleration, steering and also the gearbox. Is there maybe an example where you can use pid controllers to control this thing instead of linear predictive driver, because in my model the steering doesn't work well with linear predictive driver.
  1 个评论
Sam Chak
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
Waseem Shatto 2022-8-24
Thanks again,
that's the problem, I was able to do it, that's why I'm asking here, maybe someone has had experience with it, or someone already has PID controllers for the controls (accelerator pedal, brake pedal, steering and gear).
  2 个评论
Sam Chak
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.
Waseem Shatto
Waseem Shatto 2022-8-24
ok, thanks, maybe please send me an example. So a Simulink model for this purpose, then I try to adapt it to my requirements

请先登录,再进行评论。

Community Treasure Hunt

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

Start Hunting!

Translated by