IF_CartesianCalculations - GetCartesianVelocityFromCarrier (Method)

Overview

Type:

Method

Available as of:

V1.0.16.0

Task

Calculating the cartesian velocity (X, Y, Z) of a carrier with a given offset vector.

Description

With the method GetCartesianVelocityFromCarrier, you can calculate the velocity of the carrier in relation to the cartesian coordinate system of the track.

The position offset for the carrier in relation to the physical center point of the carrier (see Carrier Center Point) can be defined by the parameter i_stPositionOffset. For the calculation of the cartesian velocity of the carrier, this offset is taken into account.

Cartesian Coordinate System of the Carrier
Cartesian Coordinate System of the Track

For more information on the cartesian coordinate system of a Lexium™ MC multi carrier track, refer to the description of the Cartesian Coordinate System of the Track.

The value of the angle of the carrier is indicated by the parameter lrAngle in the interface IF_CarrierFeedbackSpace.

Inputs

Input

Data type

Description

i_ifCarrier

IF_Carrier

Accessing the carrier interface.

i_stPositionOffset

PDL.ST_Vector3D

Specifies the position offset in relation to the center point of the carrier.

Return value

Return value

Data type

Description

GetCartesianVelocityFromCarrier

PDL.ST_Vector3D

Returns the cartesian velocity (X, Y, Z) of carrier in relation to the cartesian coordinate system of the track.

Outputs

Output

Data type

Description

q_xError

BOOL

Indicates TRUE if an error has been detected. For details, refer to q_etResult and q_sResultMsg.

q_etResult

ET_Result

Provides diagnostic and status information as a numeric value.
If q_xError = FALSE, q_etResult provides status information.
If q_xError = TRUE, q_etResult provides diagnostic/error information.

q_sResultMsg

STRING [255]

Provides additional diagnostic and status information as a text message.