Skip to content

chore: aggregate ClockDiffMeasurements to reduce susceptibility to noise#3

Merged
mojomex merged 4 commits into
mainfrom
chore/median-filter-measurements
Jul 31, 2025
Merged

chore: aggregate ClockDiffMeasurements to reduce susceptibility to noise#3
mojomex merged 4 commits into
mainfrom
chore/median-filter-measurements

Conversation

@mojomex
Copy link
Copy Markdown
Collaborator

@mojomex mojomex commented Jul 31, 2025

ClockDiffMeasurements are used to gain information on delays between clocks that cannot be gathered through other means. The most common use case is for sensors that do not support PTP management protocol and which do not report delay information through other means.

The measurement mechanism usually has to be implemented in software (userspace) and thus is subject to scheduling and other sources of measurement noise.

To prevent noise from triggering an ERROR diagnostic status, this PR implements a median filter that aggregates the measurements on each measurement link for the whole timed update queue. The ClockDiffMeasurements are then removed and each link's aggregate is inserted into the graph.

mojomex added 4 commits July 31, 2025 17:45
Signed-off-by: Max SCHMELLER <max.schmeller@tier4.jp>
Signed-off-by: Max SCHMELLER <max.schmeller@tier4.jp>
Signed-off-by: Max SCHMELLER <max.schmeller@tier4.jp>
Signed-off-by: Max SCHMELLER <max.schmeller@tier4.jp>
@mojomex mojomex self-assigned this Jul 31, 2025
@sonarqubecloud
Copy link
Copy Markdown

@mojomex mojomex merged commit 1058cca into main Jul 31, 2025
3 checks passed
@mojomex mojomex deleted the chore/median-filter-measurements branch July 31, 2025 13:27
mojomex added a commit that referenced this pull request Jan 28, 2026
…noise (#3)

* chore: add median aggregation for clock diff measurements

Signed-off-by: Max SCHMELLER <max.schmeller@tier4.jp>

* docs: clarify in/outputs for measurement aggregate

Signed-off-by: Max SCHMELLER <max.schmeller@tier4.jp>

* chore: rename measurement aggregator to more generic name

Signed-off-by: Max SCHMELLER <max.schmeller@tier4.jp>

* chore: use update aggregator in diag master

Signed-off-by: Max SCHMELLER <max.schmeller@tier4.jp>

---------

Signed-off-by: Max SCHMELLER <max.schmeller@tier4.jp>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant