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

GNSSSetSpeed

Valid for: CANoe DE • CANoe4SW DE

Function Syntax

dword GNSSSetSpeed( double  speed )

Description

This function sets the speed at which the GNSS receiver moves. The unit of the parameter depends on the system of measurement units selected with the GNSSSetUnits function.

Parameters

  • speed: speed of the simulation (in km/h, mph or kn)

Return Values

error code

Example

GNSSSetUnits( 2 );  // set nautic system
GNSSSetSpeed( 20 ); // new speed: 20 Knots