Trimble Outdoors 44326-00-ENG GPS Receiver User Manual


 
FirstGPS Starter Kit User Guide
61
Using the FirstGPS API
A
1.7.3
navGetCompactTime
Get current time.
Description
The navGetCompactTime gets the current GPS week number and
GPS time of week from the navigation platform. The GPS time and
week number are computed based on the OS ticks elapsed since the
last time reported from the measurement unit.
Included Header File
#include npStdIface.h
Format
npRetCode navGetCompactTime (npCompTimeType*
ptCompTime);
Output Parameter
Return Values
Data Type Parameter Description
npCompTimeType* ptCompTime A pointer to the npCompTimeType data
structure which includes various
representations of GPS time. Although
this function does not return a value,
check the ucStatus field of the
ptCompTime to determine whether the
ptCompTime contains a valid time or not.
Value Description
NAV_OK The GPS time is retrieved successfully.
NAV_ERROR The GPS time is not retrieved
successfully.