improve comments

This commit is contained in:
sonora 2016-05-12 22:21:59 +02:00
parent 48e3af00b9
commit 37dbc5c325

View file

@ -124,7 +124,7 @@ public class VoiceRouter {
// turn prompt starts either at distance, or additionally (TURN_IN and TURN only) if actual-lead-time(currentSpeed) < maximum-lead-time(defined by default speed) // turn prompt starts either at distance, or additionally (TURN_IN and TURN only) if actual-lead-time(currentSpeed) < maximum-lead-time(defined by default speed)
if(router.getAppMode().isDerivedRoutingFrom(ApplicationMode.CAR)) { if(router.getAppMode().isDerivedRoutingFrom(ApplicationMode.CAR)) {
PREPARE_LONG_DISTANCE = 3500; // [105 sec @ 120 km/h] PREPARE_LONG_DISTANCE = 3500; // [105 sec @ 120 km/h]
// Issue #1411: Do not play prompts for PREPARE_LONG_DISTANCE, not needed. // Issue 1411: Do not play prompts for PREPARE_LONG_DISTANCE, not needed.
PREPARE_LONG_DISTANCE_END = 3000 + 1000; // [ 90 sec @ 120 km/h] PREPARE_LONG_DISTANCE_END = 3000 + 1000; // [ 90 sec @ 120 km/h]
PREPARE_DISTANCE = 1500; // [125 sec] PREPARE_DISTANCE = 1500; // [125 sec]
PREPARE_DISTANCE_END = 1200; // [100 sec] PREPARE_DISTANCE_END = 1200; // [100 sec]
@ -546,7 +546,7 @@ public class VoiceRouter {
} }
if (player != null && player.supportsStructuredStreetNames()) { if (player != null && player.supportsStructuredStreetNames()) {
Term next = empty; Term next = empty;
//Issue 2377: Play Dest here only if not already previously announced to repeat repetition //Issue 2377: Play Dest here only if not already previously announced, to avoid repetition
if (includeDest == true) { if (includeDest == true) {
next = new Struct(new Term[] { getTermString(getSpeakablePointName(i.getRef())), next = new Struct(new Term[] { getTermString(getSpeakablePointName(i.getRef())),
getTermString(getSpeakablePointName(i.getStreetName())), getTermString(getSpeakablePointName(i.getStreetName())),
@ -558,7 +558,7 @@ public class VoiceRouter {
} }
Term current = empty; Term current = empty;
if (currentSegment != null) { if (currentSegment != null) {
//Issue 2377: Play Dest here only if not already previously announced to repeat repetition //Issue 2377: Play Dest here only if not already previously announced, to avoid repetition
if (includeDest == true) { if (includeDest == true) {
RouteDataObject obj = currentSegment.getObject(); RouteDataObject obj = currentSegment.getObject();
current = new Struct(new Term[] { getTermString(getSpeakablePointName(obj.getRef())), current = new Struct(new Term[] { getTermString(getSpeakablePointName(obj.getRef())),