change for voicehint list first step
This commit is contained in:
parent
c5f158ec43
commit
01ac57a929
1 changed files with 5 additions and 4 deletions
|
@ -129,10 +129,7 @@ public final class VoiceHintProcessor {
|
||||||
|
|
||||||
if (badPrio > maxPrioAll && !isBadHighway2Link) {
|
if (badPrio > maxPrioAll && !isBadHighway2Link) {
|
||||||
maxPrioAll = badPrio;
|
maxPrioAll = badPrio;
|
||||||
}
|
input.maxBadPrio = Math.max(input.maxBadPrio, badPrio);
|
||||||
|
|
||||||
if (badWay.costfactor < 20.f && Math.abs(badTurn) < minAbsAngeRaw) {
|
|
||||||
minAbsAngeRaw = Math.abs(badTurn);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (badPrio < minPrio) {
|
if (badPrio < minPrio) {
|
||||||
|
@ -147,6 +144,10 @@ public final class VoiceHintProcessor {
|
||||||
continue; // ways from the back should not trigger a slight turn
|
continue; // ways from the back should not trigger a slight turn
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (badWay.costfactor < 20.f && Math.abs(badTurn) < minAbsAngeRaw) {
|
||||||
|
minAbsAngeRaw = Math.abs(badTurn);
|
||||||
|
}
|
||||||
|
|
||||||
if (badPrio > maxPrioCandidates) {
|
if (badPrio > maxPrioCandidates) {
|
||||||
maxPrioCandidates = badPrio;
|
maxPrioCandidates = badPrio;
|
||||||
input.maxBadPrio = Math.max(input.maxBadPrio, badPrio);
|
input.maxBadPrio = Math.max(input.maxBadPrio, badPrio);
|
||||||
|
|
Loading…
Reference in a new issue