[状态栏]优化CAN和RTK状态判断;RTK状态增加文字描述
This commit is contained in:
@@ -252,4 +252,11 @@ object CallerAutoPilotManager {
|
||||
fun getTeleTimeStamp(): Long {
|
||||
return providerApi?.getTeleTimeStamp() ?: 0L
|
||||
}
|
||||
|
||||
/**
|
||||
* 主动查询工控机的各topic状态
|
||||
*/
|
||||
fun sendStatusQueryReq() {
|
||||
providerApi?.sendStatusQueryReq()
|
||||
}
|
||||
}
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user