navETAAutoSet (Function)

Top  Previous  Next

Architecture:

X32 / NX32 / NX32L

Device support:

MX2, AX9, CX1 pro/flex/warp, SX1, MX2 turbo/encore/warp, AX9 turbo, NX-200, NX-400, NX-900

Firmware version:

1.40 / 1.00.00

Nav. API level:

1


This function will enable or disable raising "ETA" events at regular intervals.

 

 

Input:

freq : INT (0,10..)

The frequency of ETA reports in seconds.

0

- Disables automatic ETA reports.

 

Returns: INT

0

- Success.

-1

- Navigation interface is not open.

-8

- Illegal frequency.

-12

- Navigation interface is busy.

 

Declaration:

FUNCTION navETAAutoSet : INT;
VAR_INPUT
  freq : INT;
END_VAR;

 

Example:

INCLUDE rtcu.inc
 
PROGRAM NavigationExample;
 
BEGIN
  ...
  // Enable ETA events at regular intervals
  navETAAutoSet(freq := 20);
  ...
END;
END_PROGRAM;