From 1bc335dcf3d8137bd6dcef50592f664b9c367a68 Mon Sep 17 00:00:00 2001 From: lixiaopeng Date: Mon, 16 Jan 2023 18:52:49 +0800 Subject: [PATCH] [2.13.2] opt --- .../obu/mogo/MogoPrivateObuNewManager.kt | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/core/function-impl/mogo-core-function-obu-mogo/src/main/java/com/mogo/eagle/core/function/obu/mogo/MogoPrivateObuNewManager.kt b/core/function-impl/mogo-core-function-obu-mogo/src/main/java/com/mogo/eagle/core/function/obu/mogo/MogoPrivateObuNewManager.kt index e56034195f..9956595731 100644 --- a/core/function-impl/mogo-core-function-obu-mogo/src/main/java/com/mogo/eagle/core/function/obu/mogo/MogoPrivateObuNewManager.kt +++ b/core/function-impl/mogo-core-function-obu-mogo/src/main/java/com/mogo/eagle/core/function/obu/mogo/MogoPrivateObuNewManager.kt @@ -1114,10 +1114,10 @@ class MogoPrivateObuNewManager private constructor() { val red = currentLight.countDown.toInt() Log.e("lixp", " ----11--- red --------- = $red ----lightCountDownTemp = $lightCountDownTemp ----isGreenLight = $isGreenLight") //记录当前红灯的上一帧的值 10,9,10 - if (lightCountDownTemp < red) { - return - } - lightCountDownTemp = red +// if (lightCountDownTemp < red) { +// return +// } +// lightCountDownTemp = red CallerHmiManager.changeCountdownRed(red) if (red == 1) { @@ -1144,10 +1144,10 @@ class MogoPrivateObuNewManager private constructor() { CallerObuTrafficLightListenerManager.invokeObuTrafficLight(3) val green = currentLight.countDown.toInt() Log.e("lixp", " ----11--- green --------- = $green ---lightCountDownTemp = $lightCountDownTemp ----isYellowLight = $isYellowLight") - if (lightCountDownTemp < green) { - return - } - lightCountDownTemp = green +// if (lightCountDownTemp < green) { +// return +// } +// lightCountDownTemp = green CallerHmiManager.changeCountdownGreen(green) if (green == 1) { @@ -1171,10 +1171,10 @@ class MogoPrivateObuNewManager private constructor() { CallerObuTrafficLightListenerManager.invokeObuTrafficLight(2) val yellow = currentLight.countDown.toInt() Log.d("lixp", " ------- yellow --------- = $yellow ---lightCountDownTemp = $lightCountDownTemp ----isYellowLight = $isYellowLight") - if (lightCountDownTemp < yellow) { - return - } - lightCountDownTemp = yellow +// if (lightCountDownTemp < yellow) { +// return +// } +// lightCountDownTemp = yellow CallerHmiManager.changeCountdownYellow(yellow) }