Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 08fb6ad3 authored by Ytai Ben-Tsvi's avatar Ytai Ben-Tsvi Committed by Ytai Ben-tsvi
Browse files

Increase auto-recenter rotation threshold to 10.5 deg

As per UX request, auto-recentering threshold needs to be adjusted to
be less sensitive (and thus trigger more often).

Test: Manual verification
Fixes: 219953523
Change-Id: Idbc0892673a53a5ffd4acf7366d1d05a5ff16545
parent d21f3585
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -57,7 +57,7 @@ constexpr auto kAutoRecenterWindowDuration = 6s;
constexpr float kAutoRecenterTranslationThreshold = 0.1f;

// Auto-recenter considers head not still if rotated by this much (in radians, approx).
constexpr float kAutoRecenterRotationThreshold = 7.0f / 180 * M_PI;
constexpr float kAutoRecenterRotationThreshold = 10.5f / 180 * M_PI;

// Screen is considered to be unstable (not still) if it has moved significantly within the last
// time window of this duration.