Skip to main content

Documentation Index

Fetch the complete documentation index at: https://notevil.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Open topic with navigation CAPL Functions » J1939 » GNSS NL » GNSSGetCurSpeed

GNSSGetCurSpeed

Valid for: CANoe DE • CANoe4SW DE

Function Syntax

double GNSSGetCurSpeed();

Description

This function returns the current speed at which the GNSS receiver is moving. If a value of 0.0 is returned, the GNSSGetLastError function must be used to check whether the value is valid. The unit of the parameter depends on the system of measurement units selected with the GNSSSetUnits function.

Parameters

Return Values

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

Example

double speed;
GNSSSetUnits( 0 );
speed = GNSSGetCurSpeed();
write("Speed = %lf km/h", speed);