@@ -3,7 +3,6 @@ package com.mogo.eagle.core.function.obu.mogo
|
||||
import android.content.Context
|
||||
import com.alibaba.android.arouter.launcher.ARouter
|
||||
import com.mogo.eagle.core.data.enums.WarningDirectionEnum
|
||||
import com.mogo.eagle.core.data.obu.ObuStatusInfo
|
||||
import com.mogo.eagle.core.function.api.hmi.warning.IMoGoWarningStatusListener
|
||||
import com.mogo.eagle.core.function.call.hmi.CallerHmiManager
|
||||
import com.mogo.eagle.core.function.call.obu.CallerObuListenerManager
|
||||
@@ -39,7 +38,7 @@ class MogoPrivateObuManager private constructor() {
|
||||
private var mMogoServiceApis: IMogoServiceApis? = null
|
||||
private var mIMogoMapService: IMogoMapService? = null
|
||||
private var mContext: Context? = null
|
||||
private var mObuStatusInfo = ObuStatusInfo()
|
||||
private var mObuStatusInfo = CallerObuListenerManager.getObuStatusInfo()
|
||||
|
||||
fun init(context: Context, ipAddress: String) {
|
||||
Logger.d(MogoObuConst.TAG_MOGO_OBU, "obuManager初始化--")
|
||||
@@ -447,7 +446,10 @@ class MogoPrivateObuManager private constructor() {
|
||||
-> {
|
||||
if (info.ext_info != null) {
|
||||
// 计算为千米每小时 TODO 这里需要做一下向上取整数,40,60,80,120等
|
||||
Logger.d(MogoObuConst.TAG_MOGO_OBU, "info.ext_info.speed_limit_max ------> ${info.ext_info.speed_limit_max}")
|
||||
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())
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user