add another second to turnImminent status to try compensate device delay

This commit is contained in:
sonora 2012-02-24 19:15:01 +01:00
parent e2e978783d
commit a2a75a2416

View file

@ -469,9 +469,9 @@ public class RoutingHelper {
turnImminent = -1; 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(lastFixedLocation != null && lastFixedLocation.hasSpeed()){
if ((dist < (lastFixedLocation.getSpeed() * 5f)) && (dist < 300)) { if ((dist < (lastFixedLocation.getSpeed() * 6f)) && (dist < 300)) {
turnImminent = 1; turnImminent = 1;
} }
} }