gpsSetSpeedThreshold (Function)

Top  Previous  Next

Architecture:

X32 / NX32 / NX32L

Device support:

MX2i, CX1, SX1, MX2 turbo/encore/warp, NX-200

Firmware version:

2.60 / 1.40.00


This function sets the speed threshold that is used by SuperGPS-based devices to determine a new position.

If the speed is slower than the threshold, the position will stay fixed. This is to avoid undesired position drift when standing still.
 

 

Input:

threshold : SINT (Default: 3)

0 = None (Pedestrian. 0 m/s).

1 = Low (Sport / Bike. 0.2 m/s).

2 = Medium (Low speed vehicles. 0.8 m/s).

3 = High (Vehicles. 1.5 m/s).

 

Returns: BOOL

TRUE:

Speed threshold is changed.

FALSE:

Failed to change speed threshold. The device may not have SuperGPS.

 

Declaration:

FUNCTION gpsSetSpeedThreshold : BOOL;
VAR_INPUT
  threshold : SINT;
END_VAR;

 

 

Example:

INCLUDE rtcu.inc
 
PROGRAM test;
 
gpsPower(power := ON);
gpsSetSpeedThreshold(threshold := 2);
..
 
BEGIN
END;
END_PROGRAM;