From a2a75a2416d37849f5a2bf28058be8db65963c05 Mon Sep 17 00:00:00 2001 From: sonora Date: Fri, 24 Feb 2012 19:15:01 +0100 Subject: [PATCH] add another second to turnImminent status to try compensate device delay --- OsmAnd/src/net/osmand/plus/routing/RoutingHelper.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/routing/RoutingHelper.java b/OsmAnd/src/net/osmand/plus/routing/RoutingHelper.java index 02fb541b35..390ec46abf 100644 --- a/OsmAnd/src/net/osmand/plus/routing/RoutingHelper.java +++ b/OsmAnd/src/net/osmand/plus/routing/RoutingHelper.java @@ -469,9 +469,9 @@ public class RoutingHelper { turnImminent = -1; } - //Show turnImminent for at least 5 sec if moving, cut off at 300m to avoid speed artifacts + //Show turnImminent for at least 5 sec (changed to 6 for device delay) if moving, cut off at 300m to avoid speed artifacts if(lastFixedLocation != null && lastFixedLocation.hasSpeed()){ - if ((dist < (lastFixedLocation.getSpeed() * 5f)) && (dist < 300)) { + if ((dist < (lastFixedLocation.getSpeed() * 6f)) && (dist < 300)) { turnImminent = 1; } }