Skip to main content
Open topic with navigation CAPL Functions » J1939 » GNSS NL » GNSSOnSetSpeed

GNSSOnSetSpeed

Valid for: CANoe DE • CANoe4SW DE

Function Syntax

void GNSSOnSetSpeed( double speed )

Description

This function is called if the speed of the simulation has been changed. This is helpful in the case of simulation by a file when the speed is determined from the file (see GNSSStartSimulation). The unit of the parameter depends on the system of measurement units selected with the GNSSSetUnits function.

Parameters

  • speed: New speed (in km/h, mph or kn)

Return Values

Example

void GNSSOnSetSpeed( double speed )
{
  write("New speed = %lf", speed )
}