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.
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.
Input |
Data type |
Description |
---|---|---|
i_ifCarrier |
Accessing the carrier interface. |
|
i_stPositionOffset |
Specifies the position offset in relation to the center point of the carrier. |
Return value |
Data type |
Description |
---|---|---|
GetCartesianVelocityFromCarrier |
Returns the cartesian velocity (X, Y, Z) of carrier in relation to the cartesian coordinate system of the track. |
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 |
Provides diagnostic and status information as a numeric value. |
|
q_sResultMsg |
STRING [255] |
Provides additional diagnostic and status information as a text message. |