11/* 
22  Displaying the TIM TP timing information for the _next_ TP time pulse 
3-   (PVT provides the time of the _previous_ pulse) 
43  By: Paul Clark 
54  SparkFun Electronics 
65  Date: March 24th, 2023 
76  License: MIT. See license file for more information. 
87
98  This example shows how to query a u-blox module for the TIM TP time-pulse-of-week. 
109  This contains the timing information for the _next_ time pulse. I.e. it is output 
11-   _ahead_ of time. PVT contains the time of the _previous_ pulse. 
10+   _ahead_ of time. PVT provides the time of the navigation solution which is usually 
11+   aligned with the _previous_ pulse. 
1212
1313  Feel like supporting open source hardware? 
1414  Buy a board from SparkFun! 
@@ -78,7 +78,8 @@ void loop()
7878  //       Then getPVT will poll NAV PVT, wait and return true when the NAV PVT data arrives.
7979  //       The TIM TP data will then be one second old.
8080  //       Because TIM TP provides the time of the _next_ time pulse and NAV PVT provides
81-   //       the time of the _previous_ time pulse, the two Epochs should be the same!
81+   //       the time of the navigation solution close to the _previous_ time pulse,
82+   //       the two Epochs should be the same!
8283  if  (myGNSS.getTIMTP () && myGNSS.getPVT ())
8384  {
8485    //  Read the time pulse of week as Unix Epoch
@@ -101,7 +102,7 @@ void loop()
101102    uint32_t  epochPVT = myGNSS.getUnixEpoch (microsPVT); // Read the time of week as Unix Epoch
102103
103104    Serial.print (" NAV PVT as Epoch: "  );
104-     Serial.print (epochPVT); // Print the time of the previous pulse 
105+     Serial.print (epochPVT); // Print the time of the previous navigation solution 
105106    Serial.print (" ."  );
106107    if  (microsPVT < 100000 ) Serial.print (" 0"  ); // Pad the zeros if needed
107108    if  (microsPVT < 10000 ) Serial.print (" 0"  );
0 commit comments