Fix wrong UTurn indication (according to left/right side)
This commit is contained in:
parent
82e8a19afd
commit
282f8a784d
1 changed files with 2 additions and 2 deletions
|
@ -314,7 +314,7 @@ public class RouteResultPreparation {
|
||||||
t = TurnType.valueOf(TurnType.TSLL, leftSide);
|
t = TurnType.valueOf(TurnType.TSLL, leftSide);
|
||||||
} else if (mpi < 120) {
|
} else if (mpi < 120) {
|
||||||
t = TurnType.valueOf(TurnType.TL, leftSide);
|
t = TurnType.valueOf(TurnType.TL, leftSide);
|
||||||
} else if (mpi < 135) {
|
} else if (mpi < 135 || leftSide) {
|
||||||
t = TurnType.valueOf(TurnType.TSHL, leftSide);
|
t = TurnType.valueOf(TurnType.TSHL, leftSide);
|
||||||
} else {
|
} else {
|
||||||
t = TurnType.valueOf(TurnType.TU, leftSide);
|
t = TurnType.valueOf(TurnType.TU, leftSide);
|
||||||
|
@ -324,7 +324,7 @@ public class RouteResultPreparation {
|
||||||
t = TurnType.valueOf(TurnType.TSLR, leftSide);
|
t = TurnType.valueOf(TurnType.TSLR, leftSide);
|
||||||
} else if (mpi > -120) {
|
} else if (mpi > -120) {
|
||||||
t = TurnType.valueOf(TurnType.TR, leftSide);
|
t = TurnType.valueOf(TurnType.TR, leftSide);
|
||||||
} else if (mpi > -135) {
|
} else if (mpi > -135 || !leftSide) {
|
||||||
t = TurnType.valueOf(TurnType.TSHR, leftSide);
|
t = TurnType.valueOf(TurnType.TSHR, leftSide);
|
||||||
} else {
|
} else {
|
||||||
t = TurnType.valueOf(TurnType.TU, leftSide);
|
t = TurnType.valueOf(TurnType.TU, leftSide);
|
||||||
|
|
Loading…
Reference in a new issue