Skip to main content
Open topic with navigation CAPL Functions » ISO11783 » ISO11783 Node Layer » Iso11783PDDSetDistance

Iso11783PDDSetDistance

Valid for: CANoe DE • CANoe4SW DE

Function Syntax

long Iso11783PDDSetDistance( dword ecuHandle, dword distance );

Description

The distance covered is set with this function. The value is needed for the distance trigger and should be updated cyclically.

Parameters

  • ecuHandle: Handle of the ECU. The handle must previously have been created with Iso11783CreateECU.
  • distance: Distance covered in [m].

Return Values

Error code

Example

void ReceiveGBSDFromTractor( pg GroundBasesSpeedPG thisPG ){
  Iso11783PDDSetDistance( ecuHandle, thisPG.GroundBasedDistance.phys );
}