From cd9b76ef786ff267a7490f83762aa2c1c8fa615c Mon Sep 17 00:00:00 2001 From: Jared Boone Date: Wed, 27 Jul 2016 14:08:24 -0700 Subject: [PATCH] Touch: Average/threshold tweaks. --- firmware/application/touch.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/firmware/application/touch.hpp b/firmware/application/touch.hpp index d1e6eaee..3507c0af 100644 --- a/firmware/application/touch.hpp +++ b/firmware/application/touch.hpp @@ -221,8 +221,8 @@ private: }; static constexpr float r_touch_threshold = 0x1000; - static constexpr size_t touch_count_threshold { 4 }; - static constexpr uint32_t touch_stable_bound { 4 }; + static constexpr size_t touch_count_threshold { 3 }; + static constexpr uint32_t touch_stable_bound { 16 }; // Ensure filter length is equal or less than touch_count_threshold, // or coordinates from the last touch will be in the initial averages.