주요 콘텐츠

addVehInfo

R2026b

Add vehicle information to K and C service

Since R2026b

Description

addVehInfo(knc,Name=Value) adds vehicle information to the K and C service object knc using one or more name-value arguments. You can call this method multiple times to incrementally add vehicle properties.

example

Input Arguments

expand all

K and C service object, specified as a vdynsuspension.KnCService handle-class object created using kncSuspension.

Name-Value Arguments

expand all

Specify optional pairs of arguments as Name1=Value1,...,NameN=ValueN, where Name is the argument name and Value is the corresponding value. Name-value arguments must appear after other arguments, but the order of the pairs does not matter.

Example: kncSuspension.addVehInfo(Name = "myCar", VIN = 99999) assigns descriptive metadata to the K and C service object, specifying the name of the test vehicle as "myCar" and the VIN as 99999.

Vehicle Identification

expand all

Vehicle name or model, specified as a string scalar.

Data Types: string

Vehicle Identification Number, specified as a string scalar.

Data Types: string

Dimensions

expand all

Left wheelbase, specified as a scalar, in mm.

Data Types: double

Right wheelbase, specified as a scalar, in mm.

Data Types: double

Front axle track width, specified as a scalar, in mm.

Data Types: double

Rear axle track width, specified as a scalar, in mm.

Data Types: double

Mass and Inertia

expand all

Total vehicle mass, specified as a scalar, in kg.

Data Types: double

Vehicle mass distribution, specified as a 1-by-4 vector in the format [front, rear, left, right].

Data Types: double

Moments of inertia, specified as a 1-by-3 vector in the format [pitch, yaw, roll], in kg*m^2.

Data Types: double

Center of gravity, specified as a 1-by-3 vector in the format [x, y, z], in mm.

Data Types: double

Static Alignment

expand all

Static toe angles, specified as a 1-by-4 vector in the format [FL, FR, RL, RR].

Data Types: double

Static camber angles, specified as a 1-by-4 vector in the format [FL, FR, RL, RR].

Data Types: double

Static caster angles, specified as a 1-by-4 vector in the format [FL, FR, RL, RR].

Data Types: double

Static loaded wheel radius, specified as a 1-by-4 vector in the format [FL, FR, RL, RR].

Data Types: double

Examples

expand all

Create a K and C service object and add vehicle information including mass and track widths.

knc = kncSuspension;
knc.addVehInfo(Name="myCar", Mass=1950, FrontTrack=1626, RearTrack=1632)

Add static alignment values in a subsequent call.

knc.addVehInfo(StatToe=[-0.008, -0.010, 0.005, 0.004], ...
    StatCamber=[0.011, 0.012, -0.024, -0.024])

Version History

Introduced in R2026b