navPositionToSemicircles (Function)

Top  Previous  Next

Architecture:

X32 / NX32 / NX32L

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;