Merge branch 'dev/dev_eagle_wuhan_sikua_obu' into dev/dev_eagle_architecture_upgrade

# Conflicts:
#	core/function-impl/mogo-core-function-hmi/src/main/res/layout/view_debug_setting.xml
This commit is contained in:
董宏宇
2021-10-12 17:42:55 +08:00
7 changed files with 33 additions and 19 deletions

View File

@@ -447,7 +447,8 @@ class MogoPrivateObuManager private constructor() {
-> {
if (info.ext_info != null) {
// 计算为千米每小时 TODO 这里需要做一下向上取整数406080120等
CallerHmiManager.showLimitingVelocity((info.ext_info.speed_limit_max.toInt() * 60 * 60) / 1000)
Logger.d(MogoObuConst.TAG_MOGO_OBU, "info.ext_info.speed_limit_max ------> ${info.ext_info.speed_limit_max}")
CallerHmiManager.showLimitingVelocity((Math.ceil(((info.ext_info.speed_limit_max * 60 * 60) / 1000) / 10) * 10).toInt())
}
}
// 删除
@@ -615,7 +616,7 @@ class MogoPrivateObuManager private constructor() {
isGreenLight = false
CallerHmiManager.showWarningTrafficLight(1)
val red = currentLight.count_down.toInt()
val red = currentLight.count_down.toInt() + 1
CallerHmiManager.changeCountdownRed(red)
CallerHmiManager.changeCountdownGreen(0)
CallerHmiManager.changeCountdownYellow(0)