From a77508a0fb7027d909b5382693915664ac1a3690 Mon Sep 17 00:00:00 2001 From: kinect-bot Date: Thu, 26 Nov 2026 22:15:04 -0500 Subject: [PATCH] test(mapping): pin golden Holt sequence to explicit params so smoothing-default tuning doesn't break it --- tests/test_mapping.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/test_mapping.cpp b/tests/test_mapping.cpp index b480d4c..f7a3a53 100644 --- a/tests/test_mapping.cpp +++ b/tests/test_mapping.cpp @@ -152,7 +152,11 @@ TEST(mapping, OutOfRangeLandmarksAndDepthAreClamped) { } TEST(mapping, HoltFilterMatchesPrecomputedGoldenSequence) { - nui::mapping::HoltSmoothingFilter filter; + // Explicit params the golden sequence was computed with, so tuning the + // SmoothingParameters defaults (for cursor stability) does not break this + // test of the filter math. + nui::mapping::HoltSmoothingFilter filter( + nui::mapping::SmoothingParameters{0.6f, 0.4f, 0.4f, 0.04f, 0.07f}); const std::array raw_x{{0.0f, 0.02f, 0.04f, 0.10f, 0.12f}}; const std::array expected_x{{ 0.000000000f,