[690][adas]OTA升级功能接口修改
This commit is contained in:
@@ -446,24 +446,24 @@ class MoGoAdasListenerImpl : OnAdasListener {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* SSM上报OTA下载进度, 开始升级后定频上报
|
||||
*
|
||||
* @param header 头
|
||||
* @param token PadSsmMsg唯一消息ID
|
||||
* @param timestamp 消息发送时间 单位:毫秒
|
||||
* @param progress 数据 null表示 PadSsmMsg中的消息体为null
|
||||
*/
|
||||
override fun onOtaLoadingProgress(
|
||||
header: MessagePad.Header?,
|
||||
token: Long,
|
||||
timestamp: Long,
|
||||
progress: SsmInfo.OtaLoadingProgess?
|
||||
) {
|
||||
if(progress != null){
|
||||
CallerOTAManager.invokeOtaLoadingProgress(progress)
|
||||
}
|
||||
}
|
||||
// /**
|
||||
// * SSM上报OTA下载进度, 开始升级后定频上报
|
||||
// *
|
||||
// * @param header 头
|
||||
// * @param token PadSsmMsg唯一消息ID
|
||||
// * @param timestamp 消息发送时间 单位:毫秒
|
||||
// * @param progress 数据 null表示 PadSsmMsg中的消息体为null
|
||||
// */
|
||||
// override fun onOtaLoadingProgress(
|
||||
// header: MessagePad.Header?,
|
||||
// token: Long,
|
||||
// timestamp: Long,
|
||||
// progress: SsmInfo.OtaLoadingProgess?
|
||||
// ) {
|
||||
// if(progress != null){
|
||||
// CallerOTAManager.invokeOtaLoadingProgress(progress)
|
||||
// }
|
||||
// }
|
||||
|
||||
/**
|
||||
* SSM上报OTA状态和查询OTA状态
|
||||
|
||||
@@ -56,15 +56,6 @@ object OTAUpgradeManager: IMoGoAutopilotStatusListener, IDataCenterBizListener,
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* SSM上报OTA下载进度, 开始升级后定频上报
|
||||
* @param progress 下载进度
|
||||
*/
|
||||
override fun onOtaLoadingProgress(progress: SsmInfo.OtaLoadingProgess) {
|
||||
super.onOtaLoadingProgress(progress)
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* SSM上报OTA状态和查询OTA状态
|
||||
|
||||
@@ -13,11 +13,11 @@ interface IOTAListener {
|
||||
*/
|
||||
fun onOtaDownloadRequest(request: SsmInfo.OtaDownloadRequest){}
|
||||
|
||||
/**
|
||||
* SSM上报OTA下载进度, 开始升级后定频上报
|
||||
* @param progress 下载进度
|
||||
*/
|
||||
fun onOtaLoadingProgress(progress: SsmInfo.OtaLoadingProgess){}
|
||||
// /**
|
||||
// * SSM上报OTA下载进度, 开始升级后定频上报
|
||||
// * @param progress 下载进度
|
||||
// */
|
||||
// fun onOtaLoadingProgress(progress: SsmInfo.OtaLoadingProgess){}
|
||||
|
||||
/**
|
||||
* SSM上报OTA状态和查询OTA状态
|
||||
|
||||
@@ -20,16 +20,16 @@ object CallerOTAManager: CallerBase<IOTAListener>() {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* SSM上报OTA下载进度, 开始升级后定频上报
|
||||
* @param progress 下载进度
|
||||
*/
|
||||
fun invokeOtaLoadingProgress(progress: SsmInfo.OtaLoadingProgess){
|
||||
M_LISTENERS.forEach {
|
||||
val listener = it.value
|
||||
listener.onOtaLoadingProgress(progress)
|
||||
}
|
||||
}
|
||||
// /**
|
||||
// * SSM上报OTA下载进度, 开始升级后定频上报
|
||||
// * @param progress 下载进度
|
||||
// */
|
||||
// fun invokeOtaLoadingProgress(progress: SsmInfo.OtaLoadingProgess){
|
||||
// M_LISTENERS.forEach {
|
||||
// val listener = it.value
|
||||
// listener.onOtaLoadingProgress(progress)
|
||||
// }
|
||||
// }
|
||||
|
||||
/**
|
||||
* SSM上报OTA状态和查询OTA状态
|
||||
|
||||
Reference in New Issue
Block a user