Touch: Adjust thresholds and parameters for new scan.

This commit is contained in:
Jared Boone 2016-07-27 21:58:35 -07:00
parent dd2097a447
commit 16a6d7efe0
2 changed files with 3 additions and 3 deletions

View file

@ -218,9 +218,9 @@ private:
TouchDetected,
};
static constexpr float r_touch_threshold = 0x1000;
static constexpr float r_touch_threshold = 640;
static constexpr size_t touch_count_threshold { 3 };
static constexpr uint32_t touch_stable_bound { 16 };
static constexpr uint32_t touch_stable_bound { 8 };
// Ensure filter length is equal or less than touch_count_threshold,
// or coordinates from the last touch will be in the initial averages.