[6.5.0] 僵尸车修改模型参数,提供路口统计能力,路口探查地图加自车容错及日志

This commit is contained in:
EmArrow
2024-07-11 16:52:36 +08:00
parent af30496b33
commit 67fc70f814
9 changed files with 72 additions and 5 deletions

View File

@@ -16,6 +16,7 @@ import mogo.telematics.pad.MessagePad
import mogo_msg.MogoReportMsg
import system_master.SsmInfo
import system_master.SystemStatusInfo
import java.util.concurrent.atomic.AtomicInteger
import kotlin.properties.Delegates
/**
@@ -69,6 +70,8 @@ object CallerAutoPilotStatusListenerManager : CallerBase<IMoGoAutopilotStatusLis
private var status: AdasConstants.IpcConnectionStatus? = null
private var atomicCountRoad = AtomicInteger(0)
override fun doSomeAfterAddListener(tag: String, listener: IMoGoAutopilotStatusListener) {
listener.onAutopilotStatusResponse(autopilotState)
if(dockerV.isNotEmpty()){
@@ -289,4 +292,13 @@ object CallerAutoPilotStatusListenerManager : CallerBase<IMoGoAutopilotStatusLis
itx.value.onAutopilotTrajectoryDownloadReq(autoPilotLine, downloadType)
}
}
}
fun updateRoadCount(){
atomicCountRoad.addAndGet(1)
}
fun getRoadCount(): Int {
return atomicCountRoad.get()
}
}