Pull multi-node timestamp estimation into a class
There is enough code there and enough interactions to justify an
interface. Put it behind an interface to make it much more clear and
easier to enforce what updates when and with what guarentees.
This should provide no functional change.
Change-Id: Idd2c1849c2641df828c26860c61e238f47d87f9e
diff --git a/aos/network/BUILD b/aos/network/BUILD
index 13ba42e..ade8355 100644
--- a/aos/network/BUILD
+++ b/aos/network/BUILD
@@ -450,6 +450,21 @@
],
)
+cc_library(
+ name = "multinode_timestamp_filter",
+ srcs = ["multinode_timestamp_filter.cc"],
+ hdrs = ["multinode_timestamp_filter.h"],
+ target_compatible_with = ["@platforms//os:linux"],
+ deps = [
+ ":timestamp_filter",
+ "//aos:configuration",
+ "//aos/events:simulated_event_loop",
+ "//aos/time",
+ "//third_party/gmp",
+ "@org_tuxfamily_eigen//:eigen",
+ ],
+)
+
cc_test(
name = "timestamp_filter_test",
srcs = [