[状态栏]移除频繁打印的日志

This commit is contained in:
renwj
2022-06-02 16:06:23 +08:00
parent 9988eb04b7
commit 439653f837
4 changed files with 2 additions and 4 deletions

View File

@@ -14,7 +14,7 @@ import java.util.concurrent.atomic.*
internal class GpsImpl(ctx: Context): IFlow<GpsStatus>(ctx) {
companion object {
const val TAG = "RTKImpl"
const val TAG = "GpsImpl"
}
private val registered = AtomicBoolean(false)

View File

@@ -31,7 +31,6 @@ internal class IpcImpl(ctx: Context): IFlow<IpcStatus>(ctx), IMoGoAutopilotStatu
}
private fun checkAndSend() {
Log.d(TAG, "-- checkAndSend --")
send(IpcStatus(CallerAutoPilotManager.isConnected()))
}

View File

@@ -28,7 +28,6 @@ internal class RTKImpl(ctx: Context): IFlow<RTKStatus>(ctx), IMoGoAutopilotCarSt
CallerAutoPilotManager.isConnected() && CallerAutoPilotStatusListenerManager.getAutoPilotReportMessageCode() != "EHW_RTK" && CallerAutopilotCarStatusListenerManager.getCurrentGnssInfo() != null
override fun onAutopilotCarStateData(gnssInfo: GnssInfo?) {
Log.d(TAG, "-- onAutopilotCarStateData --")
send(RTKStatus(isRTKEnabled()))
timeOutCheck()
}

View File

@@ -42,7 +42,7 @@ internal class TracingImpl(ctx: Context): IFlow<TracingStatus>(ctx), IMoGoAutopi
override fun onAutopilotStatusResponse(autoPilotStatusInfo: AutopilotStatusInfo) {
super.onAutopilotStatusResponse(autoPilotStatusInfo)
Log.d(TAG, "-- onAutopilotStatusResponse -- autopilotMode: ${autoPilotStatusInfo.pilotmode} :: state: ${autoPilotStatusInfo.state}")
//Log.d(TAG, "-- onAutopilotStatusResponse -- autopilotMode: ${autoPilotStatusInfo.pilotmode} :: state: ${autoPilotStatusInfo.state}")
if (autoPilotStatusInfo.state == IMoGoAutopilotStatusListener.STATUS_AUTOPILOT_DISABLE) {
send(TracingStatus(UNKNOWN))
}