navSemicirclesToPosition (Function)

Top  Previous  Next

Architecture:

X32 / NX32 / NX32L

Device support:

MX2, AX9, CX1 pro/flex/warp, SX1, MX2 turbo/encore/warp, AX9 turbo, NX-200, NX-400, NX-900, LX2, LX4, LX5

Firmware version:

1.40 / 1.00.00

Nav. API level:

1


This function will convert a GPS position from the semicircle format to the standard RTCU format.

 

 

Input:

pos : DINT

The latitude or longitude to convert.

 

 

Returns: DINT

The GPS position in standard RTCU format (ddmm.mmmm (multiplied by 10000)).

 

 

Declaration:

FUNCTION navSemicirclesToPosition : DINT;
VAR_INPUT
  pos : DINT;
END_VAR;

 

Example:

INCLUDE rtcu.inc
 
VAR
  result : DINT;
END_VAR;
 
PROGRAM test;
 
BEGIN
  ...
result := navSemicirclesToPosition(pos := 117210055);
  // result will contain 9494660 after the call
  ...
END;
END_PROGRAM;