[状态栏]优化CAN和RTK状态判断;RTK状态增加文字描述

This commit is contained in:
renwj
2022-07-12 17:34:40 +08:00
parent ca6148cb36
commit d2c35d07e4
20 changed files with 136 additions and 12 deletions

View File

@@ -252,4 +252,11 @@ object CallerAutoPilotManager {
fun getTeleTimeStamp(): Long {
return providerApi?.getTeleTimeStamp() ?: 0L
}
/**
* 主动查询工控机的各topic状态
*/
fun sendStatusQueryReq() {
providerApi?.sendStatusQueryReq()
}
}

View File

@@ -8,6 +8,7 @@ import com.mogo.eagle.core.utilcode.kotlin.*
import com.mogo.eagle.core.utilcode.util.GsonUtils
import mogo.telematics.pad.MessagePad
import mogo_msg.MogoReportMsg
import system_master.*
import java.util.concurrent.ConcurrentHashMap
/**
@@ -184,5 +185,15 @@ object CallerAutoPilotStatusListenerManager : CallerBase() {
}
}
/**
* 主动调查询接口AdasManager#sendStatusQueryReq(), 会收到以下回调
*/
fun invokeAutopilotStatusRespByQuery(statusInfo: SystemStatusInfo.StatusInfo?) {
statusInfo?.also {
M_AUTOPILOT_STATUS_LISTENERS.forEach{ itx ->
val listener = itx.value
listener.onAutopilotStatusRespByQuery(it)
}
}
}
}