From 3fd5336bd3ba6d5ea76abee231e0a42efa1e14a7 Mon Sep 17 00:00:00 2001 From: Konstantin Pastbin Date: Tue, 26 Aug 2025 23:45:37 +0700 Subject: [PATCH] [core] Prefer gps bearing for location arrow Signed-off-by: Konstantin Pastbin --- libs/drape_frontend/my_position_controller.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/drape_frontend/my_position_controller.cpp b/libs/drape_frontend/my_position_controller.cpp index 10c8876eb..72a4683c2 100644 --- a/libs/drape_frontend/my_position_controller.cpp +++ b/libs/drape_frontend/my_position_controller.cpp @@ -24,7 +24,8 @@ namespace df namespace { int const kPositionRoutingOffsetY = 104; -double const kMinSpeedThresholdMps = 2.8; // 10 km/h +// Speed threshold to switch to GPS bearing. Use compass for slow walking only. +double const kMinSpeedThresholdMps = 0.7; // 2.5 km/h double const kGpsBearingLifetimeSec = 5.0; double const kMaxTimeInBackgroundSec = 60.0 * 60 * 30; // 30 hours before starting detecting position again double const kMaxNotFollowRoutingTimeSec = 20.0;