Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Changing vehicle model from dual track to single track - error

1 回表示 (過去 30 日間)
Amritz Ansara
Amritz Ansara 2021 年 3 月 18 日
閉鎖済み: Amritz Ansara 2021 年 3 月 23 日
I have this Simulink model which models the lateral forces and wheel slips (it's based on the Lateral Control Tutorial model). The model itself models a 3-axle tractor which is linked to a 3-axle trailer. Both of them are currently dual-track and this has worked well. However, since the wheels act independently, I am looking to make both of these single-track.
The issue is, when I make both vehicle blocks single-track (keeping them 3 axles), I come up with this error:
"Simulink cannot determine sizes and/or types of the outputs for block 'LateralControlTutorial_modified/Vehicle and Environment/Tractor-trailer model/Three-Axle Tractor/Vehicle Body/Vehicle Body 3DOF Three Axles/vehicle model' due to errors in the block body, or limitations of the underlying analysis. The errors might be inaccurate. Fix the indicated errors, or explicitly specify sizes and/or types for all block outputs."
Which suggests the error is within the block (Vehicle Body 3DOF Three Axles) itself. But checking the "vehicle model" code gets me a function that I can't go into any further. Here's the 'error within the error':
Dimensions of arrays being concatenated are not consistent. Function 'Vehicle Body 3DOF Three Axles/vehicle model' (#643.326.570), line 5, column 7: "[yOut,FBody,MBody,FOut,FTire,Fg,wheelInfo,stateDer,status]=automlvehdynbicycle3a"
I was wondering: what kind of changes should I look out for when converting from dual-track to single-track blocks? I know that there will only be three sets of forces, displays, and velocities based on the number of 'wheels' being modelled (instead of 6 for dual-track), but what else?
  2 件のコメント
Amritz Ansara
Amritz Ansara 2021 年 3 月 18 日
I.e. I do not know which arrays that are being concatenated are not consistent, knowing this will help even if only a bit!
Amritz Ansara
Amritz Ansara 2021 年 3 月 23 日
I found the Simulink annotations tab really helped me.

回答 (0 件)

この質問は閉じられています。

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by