finding yaw angle in vehicle dynamics blockset

3 ビュー (過去 30 日間)
Dzulfikar
Dzulfikar 2025 年 4 月 29 日
回答済み: Mike Sasena 2025 年 4 月 30 日
Hi, I'm trying to analyze a car's dynamic behaviour. I'm trying to search the result "yaw angle" variable after the simulation but can't find it in the simulation data inspector. Does anyone know how to do it? Is there I specific signal logging that I need to enable?

回答 (1 件)

Mike Sasena
Mike Sasena 2025 年 4 月 30 日
Thanks for your question. The issue you're seeing is that only a small set of signals have logging enabled by default (they're in the "Visualization" subsystem). If you want to quickly get a bunch of output signals from the simulation, the simplest thing to do is to log the Vehicle Feedback bus. This is the output signal from the "Vehicle" subsystem in the root level of the model. Right-click on that line and select "Log Selected Signal":
Once the simulation is complete, you'll see a bus in the Simulation Data Inspector that includes a lot more signals, one of which is the yaw signal you're looking for, psi (defined as the rotation of the vehicle-fixed frame about the earth-fixed Z-axis).

カテゴリ

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

製品


リリース

R2024b

Community Treasure Hunt

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

Start Hunting!

Translated by