gnssDREnable (Function)

Top  Previous  Next

Architecture:

NX32, NX32L

Firmware version:

5.16 / 1.93.00


This function is used to enable and disable Dead Reckoning.

 

Dead Reckoning is enabled by default on supported devices, but there may be situations where it can be advantageous to disable it.

gnssDRStatus can be used to check if it is disabled.

 

Input:

enable: BOOL (Default TRUE)

Set to false to disable Dead Reckoning.

 

 

Returns:

1

- Success

0

- Unsupported

-2

- Generic error

-3

- GNSS power is OFF

 

Declaration:

FUNCTION gnssDREnable INT;
VAR_INPUT
   enable : BOOL := TRUE;
END_VAR;

 

 

Example:

INCLUDE rtcu.inc
 
PROGRAM test;
 
BEGIN
   ...
   // Disable DR
   gnssDREnable(enable := FALSE);
      ...
   END_IF;
   ...
END;
 
END_PROGRAM;