remove useless changes part 3
This commit is contained in:
parent
3c7964c9bf
commit
f9429867e6
1 changed files with 20 additions and 20 deletions
|
@ -414,9 +414,9 @@ public class VoiceRouter {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Updates status of voice guidance
|
* Updates status of voice guidance
|
||||||
* @param currentLocation
|
* @param currentLocation
|
||||||
*/
|
*/
|
||||||
protected void updateStatus(Location currentLocation, boolean repeat) {
|
protected void updateStatus(Location currentLocation, boolean repeat) {
|
||||||
// Directly after turn: goAhead (dist), unless:
|
// Directly after turn: goAhead (dist), unless:
|
||||||
// < PREPARE_LONG_DISTANCE (e.g. 3500m): playPrepareTurn (-not played any more-)
|
// < PREPARE_LONG_DISTANCE (e.g. 3500m): playPrepareTurn (-not played any more-)
|
||||||
|
@ -496,7 +496,7 @@ public class VoiceRouter {
|
||||||
}
|
}
|
||||||
nextStatusAfter(STATUS_TURN);
|
nextStatusAfter(STATUS_TURN);
|
||||||
|
|
||||||
// STATUS_TURN_IN = "Turn in ..."
|
// STATUS_TURN_IN = "Turn in ..."
|
||||||
} else if ((repeat || statusNotPassed(STATUS_TURN_IN)) && isDistanceLess(speed, dist, TURN_IN_DISTANCE, 0f)) {
|
} else if ((repeat || statusNotPassed(STATUS_TURN_IN)) && isDistanceLess(speed, dist, TURN_IN_DISTANCE, 0f)) {
|
||||||
if (repeat || dist >= TURN_IN_DISTANCE_END) {
|
if (repeat || dist >= TURN_IN_DISTANCE_END) {
|
||||||
if ((isDistanceLess(speed, nextNextInfo.distanceTo, TURN_DISTANCE, 0f) || nextNextInfo.distanceTo < TURN_IN_DISTANCE_END) &&
|
if ((isDistanceLess(speed, nextNextInfo.distanceTo, TURN_DISTANCE, 0f) || nextNextInfo.distanceTo < TURN_IN_DISTANCE_END) &&
|
||||||
|
@ -509,7 +509,7 @@ public class VoiceRouter {
|
||||||
}
|
}
|
||||||
nextStatusAfter(STATUS_TURN_IN);
|
nextStatusAfter(STATUS_TURN_IN);
|
||||||
|
|
||||||
// STATUS_PREPARE = "Turn after ..."
|
// STATUS_PREPARE = "Turn after ..."
|
||||||
} else if ((repeat || statusNotPassed(STATUS_PREPARE)) && (dist <= PREPARE_DISTANCE)) {
|
} else if ((repeat || statusNotPassed(STATUS_PREPARE)) && (dist <= PREPARE_DISTANCE)) {
|
||||||
if (repeat || dist >= PREPARE_DISTANCE_END) {
|
if (repeat || dist >= PREPARE_DISTANCE_END) {
|
||||||
if (!repeat && (next.getTurnType().keepLeft() || next.getTurnType().keepRight())) {
|
if (!repeat && (next.getTurnType().keepLeft() || next.getTurnType().keepRight())) {
|
||||||
|
@ -521,7 +521,7 @@ public class VoiceRouter {
|
||||||
}
|
}
|
||||||
nextStatusAfter(STATUS_PREPARE);
|
nextStatusAfter(STATUS_PREPARE);
|
||||||
|
|
||||||
// STATUS_LONG_PREPARE = also "Turn after ...", we skip this now, users said this is obsolete
|
// STATUS_LONG_PREPARE = also "Turn after ...", we skip this now, users said this is obsolete
|
||||||
} else if ((repeat || statusNotPassed(STATUS_LONG_PREPARE)) && (dist <= PREPARE_LONG_DISTANCE)) {
|
} else if ((repeat || statusNotPassed(STATUS_LONG_PREPARE)) && (dist <= PREPARE_LONG_DISTANCE)) {
|
||||||
if (repeat || dist >= PREPARE_LONG_DISTANCE_END) {
|
if (repeat || dist >= PREPARE_LONG_DISTANCE_END) {
|
||||||
playPrepareTurn(currentSegment, next, dist);
|
playPrepareTurn(currentSegment, next, dist);
|
||||||
|
@ -529,7 +529,7 @@ public class VoiceRouter {
|
||||||
}
|
}
|
||||||
nextStatusAfter(STATUS_LONG_PREPARE);
|
nextStatusAfter(STATUS_LONG_PREPARE);
|
||||||
|
|
||||||
// STATUS_UNKNOWN = "Continue for ..." if (1) after route calculation no other prompt is due, or (2) after a turn if next turn is more than PREPARE_LONG_DISTANCE away
|
// STATUS_UNKNOWN = "Continue for ..." if (1) after route calculation no other prompt is due, or (2) after a turn if next turn is more than PREPARE_LONG_DISTANCE away
|
||||||
} else if (statusNotPassed(STATUS_UNKNOWN)) {
|
} else if (statusNotPassed(STATUS_UNKNOWN)) {
|
||||||
// Strange how we get here but
|
// Strange how we get here but
|
||||||
nextStatusAfter(STATUS_UNKNOWN);
|
nextStatusAfter(STATUS_UNKNOWN);
|
||||||
|
|
Loading…
Reference in a new issue