How to edit 4-Post Rig example suspension geometry?

12 ビュー (過去 30 日間)
Ricardo Crespo
Ricardo Crespo 2021 年 9 月 24 日
回答済み: Steve Miller 2021 年 11 月 27 日
I am editing the example of the 4-post rig test of a sedan-car in order for it to have the same specs as my formula student car suspension. I am using Matlab 2020a.
When I try to change the tyre radius, wheelbase, spring constants, damping coeffients, etc, the model compiles without any problems.
However when I try to change the coordinates of any of the points of the suspension geometry (even by less than 1 mm), the model can not compile and a huge list of errors appear on the Diagnostic Viewer.
I already de-linked all the blocks from the example and removed the example folder from the path so it does not call any functions or loads any variable from that folder.
I hope you can help me,
Thank you

回答 (1 件)

Steve Miller
Steve Miller 2021 年 11 月 27 日
Hi Ricardo,
There is a setting you should clear if you alter the hardpoint locations. Clear this checkbox so that it doesn't use the operating point that has been configured for the default set of hardopints.
We put this in so that the car would start all settled on the 4-post testrig. The operating point defines the initial position (and velocity) of all degrees of freedom. If you change a hardpoint, those settings are no longer value. Clear the checkbox and you can modify the hardpoints.
I would take a look at the Simscape Vehicle Templates. It is a set of examples you can download for free and use with MATLAB, Simulink, and Simscape.
We have added a few more suspension templates, including ones that are much closer to Formula Student vehicles. Below is a screenshot of how to select a vehicle configured with the Formula Student suspension (please forgive the non-standard steering wheel).





Community Treasure Hunt

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

Start Hunting!

Translated by