[3.3.0][M1] 360环视需求代码提交
This commit is contained in:
@@ -11,6 +11,7 @@ import com.zhjt.mogo.adas.data.sweeper.task.SweeperTask.StartTaskResp
|
||||
import com.zhjt.mogo.adas.data.sweeper.task.SweeperTaskSuspendResume.SuspendResumeTaskReq
|
||||
import com.zhjt.mogo.adas.data.sweeper.task.confirm.SweeperTaskConfirm.TaskConfirmResp
|
||||
import com.zhjt.mogo.adas.data.sweeper.task.stop.SweeperTaskStop.StopTaskResp
|
||||
import com.zhjt.mogo.adas.data.AdasConstants
|
||||
|
||||
/**
|
||||
* @author xiaoyuzhou
|
||||
@@ -208,7 +209,7 @@ interface IMoGoAutopilotControlProvider : IMoGoFunctionServerProvider {
|
||||
* @param paramType 参数类型{@link com.zhidao.support.adas.high.common.Constants.PARAM_TYPE}
|
||||
* @return boolean
|
||||
*/
|
||||
fun sendGetParamReq(paramType: Int): Boolean
|
||||
fun sendGetParamReq(paramType: AdasConstants.MapSystemParamType): Boolean
|
||||
|
||||
/**
|
||||
* 获取数据采集录制模式配置列表
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
package com.mogo.eagle.core.function.api.autopilot
|
||||
|
||||
import com.zhjt.mogo.adas.data.bean.*
|
||||
import mogo.telematics.pad.*
|
||||
|
||||
|
||||
interface IMoGoGetParamResponseListener {
|
||||
|
||||
/**
|
||||
* 参数获取应答
|
||||
* <p>
|
||||
* 调用{@link AdasManager#sendGetAllParamReq()}或{@link AdasManager#sendGetParamReq(int)}
|
||||
* 如果对应的value是空串,说明没有这个param或者get失败了。重启后值还是在redis里
|
||||
*
|
||||
* @param header 头
|
||||
* @param getParamResp 配置参数
|
||||
* @param adasParam 解析后的配置参数
|
||||
*/
|
||||
fun onGetParamResp(header: MessagePad.Header, getParamResp: MessagePad.SetParamReq, adasParam: AdasParam)
|
||||
}
|
||||
@@ -14,6 +14,7 @@ import com.mogo.eagle.core.data.msgbox.MsgBoxBean
|
||||
import com.mogo.eagle.core.function.api.devatools.apm.*
|
||||
import com.mogo.eagle.core.function.api.devatools.strict.*
|
||||
import com.mogo.eagle.core.function.api.devatools.download.*
|
||||
import com.mogo.eagle.core.function.api.lookaround.*
|
||||
import com.mogo.eagle.core.function.api.upgrade.*
|
||||
|
||||
/**
|
||||
@@ -205,4 +206,10 @@ interface IDevaToolsProvider : IProvider {
|
||||
fun upgradeProvider(): IMoGoUpgradeProvider?
|
||||
|
||||
fun strict(): IStrictModeProvider
|
||||
|
||||
|
||||
/**
|
||||
* 360环视数据提供者
|
||||
*/
|
||||
fun lookAroundDataProvider(): IMoGoLookAroundProvider
|
||||
}
|
||||
@@ -133,4 +133,19 @@ interface IMoGoHmiProvider :IProvider{
|
||||
fun updateStatusBarDownloadView(insert: Boolean, tag: String, progress: Int)
|
||||
|
||||
|
||||
/**
|
||||
* 展示360环视弹窗,主要用于M1车型
|
||||
*/
|
||||
fun show360LookAround()
|
||||
|
||||
/**
|
||||
* 隐藏360环视弹窗,主要用于M1车型
|
||||
*/
|
||||
fun hide360LookAround()
|
||||
|
||||
|
||||
/**
|
||||
* 360环视弹窗是否正在展示
|
||||
*/
|
||||
fun is360LookAroundShowing(): Boolean
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
package com.mogo.eagle.core.function.api.lookaround
|
||||
|
||||
import android.content.Context
|
||||
import com.mogo.eagle.core.function.api.lookaround.data.*
|
||||
import kotlinx.coroutines.flow.*
|
||||
|
||||
interface IMoGoLookAroundProvider {
|
||||
|
||||
fun init(ctx: Context)
|
||||
|
||||
fun flow(): Flow<LookAroundData>
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
package com.mogo.eagle.core.function.api.lookaround.data
|
||||
|
||||
data class LookAroundData(var data: ByteArray?, var bitmapWidth: Int, var bitmapHeight: Int, var targetX: Int = 0, var targetY: Int = 0, var targetWidth: Int = 0, var targetHeight: Int = 0) {
|
||||
|
||||
override fun toString(): String {
|
||||
return "LookAroundData(data=${data?.size}, bitmapWidth=$bitmapWidth, bitmapHeight=$bitmapHeight, targetX=$targetX, targetY=$targetY, targetWidth=$targetWidth, targetHeight=$targetHeight)"
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
fun LookAroundData.isValid(): Boolean {
|
||||
return this.data != null && this.bitmapWidth > 0 && this.bitmapHeight > 0 && targetX > 0 && targetY > 0 && targetWidth > 0 && targetHeight > 0
|
||||
}
|
||||
Reference in New Issue
Block a user