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

GNSSSetUnits

Valid for: CANoe DE • CANoe4SW DE

Function Syntax

dword GNSSSetUnits( dword unitType )

Description

This function determines the system of units of measure that will be used by the various other functions. Units of measure:
  • kMetricSystem: Meters (m), kilometers (km), kilometers/hour (km/h)
  • kEnglishSystem: Yards (yd), miles (mi), miles/hour (mph)
  • kNauticSystem: Yards (yd), nautical miles (nmi), knots (kn)
When the node is set up, the metric system for units of measures is set.

Parameters

  • unitType: units of measure
    • 0: kMetricSystem
    • 1: kEnglishSystem
    • 2: kNauticSystem

Return Values

error code

Example

// set nautic system
GNSSSetUnits( 2 );