navPositionToSemicircles (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 standard RTCU format to the semicircle format.

 

 

Input:

pos : DINT

The latitude or longitude to convert.

 

 

Returns: DINT

The GPS position in semicircle format.

 

 

Declaration:

FUNCTION navPositionToSemicircles : DINT;
VAR_INPUT
  pos : DINT;
END_VAR;

 

Example:

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