]> git.ipfire.org Git - thirdparty/nqptp.git/commitdiff
tweak PTP tracking coefficients
authorMike Brady <4265913+mikebrady@users.noreply.github.com>
Tue, 7 Dec 2021 15:07:38 +0000 (15:07 +0000)
committerMike Brady <4265913+mikebrady@users.noreply.github.com>
Tue, 7 Dec 2021 15:07:38 +0000 (15:07 +0000)
nqptp-message-handlers.c

index 9eeaeeddc52a04a7227ec8aa2c2980fe5aae6ab8..47837620d4876d7dab13329f5ee0ea3b22908507 100644 (file)
@@ -393,13 +393,13 @@ void handle_follow_up(char *buf, __attribute__((unused)) ssize_t recv_len,
                  (5 * 8)) // at the beginning (8 samples per second)
             offset = clock_private_info->previous_offset + jitter / 16;
           else
-            offset = clock_private_info->previous_offset + jitter / 16;            
+            offset = clock_private_info->previous_offset + jitter / 64;            
         } else if (clock_private_info->follow_up_number <
                  (5 * 8)) // at the beginning (8 samples per second)
           offset =
-              clock_private_info->previous_offset + jitter / 2; // accept positive changes quickly
+              clock_private_info->previous_offset + jitter / 1; // accept positive changes quickly
         else
-          offset = clock_private_info->previous_offset + jitter / 2;
+          offset = clock_private_info->previous_offset + jitter / 64;
         clock_private_info->last_sync_time = reception_time;
       } else {
         offset = clock_private_info->previous_offset; // forget the present sample...