[2.13.2] opt
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user