Trimble Outdoors 44326-00-ENG GPS Receiver User Manual


 
FirstGPS Starter Kit User Guide
71
Using the FirstGPS API
A
1.7.11
navInitTime
Put current time.
Description
Imports an external GPS time into the navigation platform. It adjusts
the local GPS time immediately, and the GPS time on the
measurement platform through message passing. The GPS time is
only permitted to override the current clock value if the current time
has not been set (that is, no satellites are tracked). The primary
purpose of this function is to reduce the time to the first fix.
Included Header File
#include npStdIface.h
Format
npRetCode navInitTime (U16 usGpsWn, U32 ulGpsTowMsec,
FLT fltTimeAccuracy);
Input Parameters
Return Values
Data Type Parameter Description
U16 usGpsWn GPS week number into the navigation platform.
U32 ulGpsTowMsec GPS time of week in millisecond into the
navigation platform.
FLT fltTimeAccuracy Accuracy of input time in milliseconds, -1 if
unknown.
Value Description
NAV_OK The GPS time is imported successfully.
NAV_ERROR The GPS time is not imported successfully.