gnssEnableType (Function)

Top  Previous  Next

Architecture:

NX32 / NX32L

Device support:

MX2 turbo/encore/warp, CX1 warp(-c) mk2, NX-200, NX-900, LX2, LX5

Firmware version:

4.00 / 1.40.00


This function is used to enable and disable the different positioning systems.

By default all the relevant positioning systems are enabled and used to determine the position returned by gnssFix and gpsFix.

 
Before calling this function the GNSS receiver must be turned ON by a call to gpsPower() or gpsPowerLP.

 

 

Input:

type: SINT (0..2, Default 0)

0

GPS

1

GLONASS

2

GALILEO

 

enable : BOOL (Default: ON)

Enables/disables the positioning system.

 

Returns: INT

0

- Success

-1

- GNSS module not powered or not supported.

-2

- Invalid parameter

-3

- Error performing action.

 

Declaration:

FUNCTION gnssEnableType : INT;
VAR_INPUT
  type   : SINT;
  enable : BOOL;
END_VAR;

 

Example:

INCLUDE rtcu.inc
 
PROGRAM test;
 
BEGIN
  ...
  // Disable GLONASS

  gnssEnableType(type := 1, enable := OFF);
  ...
END;
 
END_PROGRAM;