[6.10.0]各种地图版本呈现,车辆信息增加栅格地图和激光slam地图显示
This commit is contained in:
@@ -302,11 +302,29 @@ object CallerAutoPilotStatusListenerManager : CallerBase<IMoGoAutopilotStatusLis
|
||||
fun invokeAutopilotStatusRespByQuery(statusInfo: SystemStatusInfo.StatusInfo?) {
|
||||
statusInfo?.also { status ->
|
||||
this.statusInfo = status
|
||||
if (AppConfigInfo.adHdMapVersion.isEmpty() && status.hdMapVer != null && status.hdMapVer.isNotEmpty()) {
|
||||
if (status.hdMapVer != null && status.hdMapVer.isNotEmpty()) {
|
||||
//对地图版本进行截取
|
||||
val city = status.hdMapVer.substringAfter(".sqlite|").substringBefore("|")
|
||||
val version = status.hdMapVer.substringAfter("$city|").substringBefore("|")
|
||||
AppConfigInfo.adHdMapVersion = "${city}_${version}"
|
||||
if(AppConfigInfo.adHdMapVersion != "${city}_${version}"){
|
||||
AppConfigInfo.adHdMapVersion = "${city}_${version}"
|
||||
}
|
||||
}
|
||||
if(status.gridMapVer != null && status.gridMapVer.isNotEmpty()){
|
||||
//对栅格地图版本进行截取
|
||||
val gridCity = status.gridMapVer.substringAfter(".sqlite|").substringBefore("|")
|
||||
val gridVersion = status.gridMapVer.substringAfter("$gridCity|").substringBefore("|")
|
||||
if(AppConfigInfo.gridMapVersion != "${gridCity}_${gridVersion}"){
|
||||
AppConfigInfo.gridMapVersion = "${gridCity}_${gridVersion}"
|
||||
}
|
||||
}
|
||||
if(status.slamMapVer != null && status.slamMapVer.isNotEmpty()){
|
||||
//对激光slam地图版本进行截取
|
||||
val slamCity = status.slamMapVer.substringAfter(".sqlite|").substringBefore("|")
|
||||
val slamVersion = status.slamMapVer.substringAfter("$slamCity|").substringBefore("|")
|
||||
if(AppConfigInfo.slamMapVersion != "${slamCity}_${slamVersion}"){
|
||||
AppConfigInfo.slamMapVersion = "${slamCity}_${slamVersion}"
|
||||
}
|
||||
}
|
||||
M_LISTENERS.forEach { itx ->
|
||||
val listener = itx.value
|
||||
@@ -322,11 +340,29 @@ object CallerAutoPilotStatusListenerManager : CallerBase<IMoGoAutopilotStatusLis
|
||||
fun invokeSystemStatus(statusInf: SsmInfo.SsmStatusInf?) {
|
||||
statusInf?.also {
|
||||
this.statusInf = statusInf
|
||||
if (AppConfigInfo.adHdMapVersion.isEmpty() && statusInf.hdMapVer != null && statusInf.hdMapVer.isNotEmpty()) {
|
||||
if (statusInf.hdMapVer != null && statusInf.hdMapVer.isNotEmpty()) {
|
||||
//对地图版本进行截取
|
||||
val city = statusInf.hdMapVer.substringAfter(".sqlite|").substringBefore("|")
|
||||
val version = statusInf.hdMapVer.substringAfter("$city|").substringBefore("|")
|
||||
AppConfigInfo.adHdMapVersion = "${city}_${version}"
|
||||
if(AppConfigInfo.adHdMapVersion != "${city}_${version}"){
|
||||
AppConfigInfo.adHdMapVersion = "${city}_${version}"
|
||||
}
|
||||
}
|
||||
if(statusInf.gridMapVer != null && statusInf.gridMapVer.isNotEmpty()){
|
||||
//对栅格地图版本进行截取
|
||||
val gridCity = statusInf.gridMapVer.substringAfter(".sqlite|").substringBefore("|")
|
||||
val gridVersion = statusInf.gridMapVer.substringAfter("$gridCity|").substringBefore("|")
|
||||
if(AppConfigInfo.gridMapVersion != "${gridCity}_${gridVersion}"){
|
||||
AppConfigInfo.gridMapVersion = "${gridCity}_${gridVersion}"
|
||||
}
|
||||
}
|
||||
if(statusInf.slamMapVer != null && statusInf.slamMapVer.isNotEmpty()){
|
||||
//对激光slam地图版本进行截取
|
||||
val slamCity = statusInf.slamMapVer.substringAfter(".sqlite|").substringBefore("|")
|
||||
val slamVersion = statusInf.slamMapVer.substringAfter("$slamCity|").substringBefore("|")
|
||||
if(AppConfigInfo.slamMapVersion != "${slamCity}_${slamVersion}"){
|
||||
AppConfigInfo.slamMapVersion = "${slamCity}_${slamVersion}"
|
||||
}
|
||||
}
|
||||
M_LISTENERS.forEach { itx ->
|
||||
val listener = itx.value
|
||||
|
||||
Reference in New Issue
Block a user