Changing Z coordinates of the vehicle

1 回表示 (過去 30 日間)
Tamim Boubou
Tamim Boubou 2021 年 5 月 28 日
回答済み: Jason Rodgers 2021 年 10 月 15 日
I am using P2HEV model in which (vehicle body 3 D.O.F longitudinal ) is used for the vehicle model), and I want to observe the behaviour on an inclined road, I have changed the gradient input of the block, and the performance is changing accordingly, but my question is how to to see those changes being reflected in the coordinates of the vehicle,. Since the X position is changing as the acceleration is applied, but how to get the Z position change when there is a grade on the road? can the grade input affect the Z position of the vehicle, if not, what is the proper way of changing it?

回答 (1 件)

Jason Rodgers
Jason Rodgers 2021 年 10 月 15 日
You can use the info bus output of that block to see the coordinates. Use a bus selector and select InerFrm.Cg.Disp.Z .This will show you the Z value in the inertial frame.

カテゴリ

Help Center および File ExchangeVehicle Scenarios についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by