feat(udpscope): producer-clock calibration and hrt tick-rate fit

Adds TimeBase.h/cpp with ClockOffset (latched wall-clock offset with
one-sided recalibration on positive drift only, so early-arriving packets
do not wobble the trace) and HrtRateFit (sliding-window OLS that recovers
an unknown hrt tick rate from receive timestamps). Also adds
TimeSignalScale() which maps UDPS type codes to seconds-per-count.
9 new tests, all 28 pass.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Martino Ferrari
2026-08-27 19:50:24 +02:00
co-authored by Claude Sonnet 4.6
parent ea9689591d
commit 41ab151a2f
4 changed files with 250 additions and 0 deletions
+1
View File
@@ -82,6 +82,7 @@ endif()
set(CORE_SOURCES
Decimate.cpp
PaneTree.cpp
TimeBase.cpp
)
add_library(udpscope_core STATIC ${CORE_SOURCES})