Borrar filtros
Borrar filtros

Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

Changing vehicle model from dual track to single track - error

1 visualización (últimos 30 días)
Amritz Ansara
Amritz Ansara el 18 de Mzo. de 2021
Cerrada: Amritz Ansara el 23 de Mzo. de 2021
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 comentarios
Amritz Ansara
Amritz Ansara el 18 de Mzo. de 2021
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 el 23 de Mzo. de 2021
I found the Simulink annotations tab really helped me.

Respuestas (0)

La pregunta está cerrada.

Productos


Versión

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by