Merge remote-tracking branch 'origin/dev_robotaxi-d_250603_8.1.0' into dev_robotaxi-d_250603_8.1.0

This commit is contained in:
xinfengkun
2025-06-19 11:59:03 +08:00

View File

@@ -18,6 +18,7 @@ import com.mogo.eagle.core.function.call.devatools.CallerOTAManager
import com.mogo.eagle.core.function.call.hmi.CallerHmiManager
import com.mogo.eagle.core.utilcode.mogo.AppIdentityModeUtils
import com.mogo.eagle.core.utilcode.util.ToastUtils
import com.zhjt.mogo.adas.data.AdasConstants
import org.json.JSONArray
import org.json.JSONObject
import system_master.SsmInfo
@@ -43,6 +44,8 @@ object OTAUpgradeManager: IMoGoAutopilotStatusListener, IDataCenterBizListener,
}
private var responseTimeoutNum: Int = 0 //响应超时次数
private var shouldShowColdStartWindow: Boolean = false //是否需要展示冷启动页面
private val handler =object : Handler(Looper.getMainLooper()){
override fun handleMessage(msg: Message) {
super.handleMessage(msg)
@@ -64,6 +67,7 @@ object OTAUpgradeManager: IMoGoAutopilotStatusListener, IDataCenterBizListener,
CallerHmiManager.showOTAResultDialog(isShow = false, result = true)
//司机屏弹窗提示用车人执行车辆下电操作
CallerHmiManager.showOTAPowerOffFinishDialog()
shouldShowColdStartWindow = true
}
}
}
@@ -89,6 +93,19 @@ object OTAUpgradeManager: IMoGoAutopilotStatusListener, IDataCenterBizListener,
}
}
/**
* 工控机连接状态回调
*/
override fun onAutopilotIpcConnectStatusChanged(
status: AdasConstants.IpcConnectionStatus, reason: String?) {
super.onAutopilotIpcConnectStatusChanged(status, reason)
if(status != AdasConstants.IpcConnectionStatus.CONNECTED && shouldShowColdStartWindow){
//打开冷启动页面
CallerHmiManager.showColdStartWindow()
shouldShowColdStartWindow = false
}
}
/**
* 定频SSM接口
* 1hz hq m1 MAP350开始支持其他车型MAP360开始支持