gnssDRWheelTickPushTick (Function)

Top  Previous  Next

Architecture:

NX32, NX32L

Firmware version:

5.13 / 1.74.00


This pushes tick data to the GNSS module.

The GNSS module must have been configured to use SW ticks with gnssDRWheelTickSetup.

 

Compatibility: RTCU NX-200 DR only.

 

Input:

tick: DINT (Default 0)

The tick count. The countmax parameter in gnssDRWheelTickSetup specifies if this is absolute or relative ticks.

 

backwards : BOOL (Default FALSE)

Set to true to report backwards movement, leave at false for forward movement.

 

Returns:

1

- Success

0

- Unsupported

-1

- Invalid input.

-2

- Generic error

-3

- GNSS power is OFF

 

Declaration:

FUNCTION gnssDRWheelTickPushTick INT;
VAR_INPUT
   backwards : BOOL := FALSE;
   tick      : DINT := 0;
END_VAR;

 

 

Example:

INCLUDE rtcu.inc
 
PROGRAM test;
 
BEGIN
   ...
   // Send ticks to GNSS module
   gnssDRWheelTickPushTick(tick := 105);
      ...
   END_IF;
   ...
END;
 
END_PROGRAM;