From b8af3f92f0106724ea08d0c541fa8ca2211a4836 Mon Sep 17 00:00:00 2001 From: yangyakun Date: Tue, 22 Aug 2023 09:54:30 +0800 Subject: [PATCH] =?UTF-8?q?[5.0.0]=20[=E6=A8=A1=E6=8B=9F=E5=AE=9A=E4=BD=8D?= =?UTF-8?q?]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../common/module/debug/DebugDataDispatch.kt | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/OCH/mogo-och-common-module/src/debug/java/com/mogo/och/common/module/debug/DebugDataDispatch.kt b/OCH/mogo-och-common-module/src/debug/java/com/mogo/och/common/module/debug/DebugDataDispatch.kt index 16530be879..ce12c6827a 100644 --- a/OCH/mogo-och-common-module/src/debug/java/com/mogo/och/common/module/debug/DebugDataDispatch.kt +++ b/OCH/mogo-och-common-module/src/debug/java/com/mogo/och/common/module/debug/DebugDataDispatch.kt @@ -9,9 +9,9 @@ import com.google.gson.reflect.TypeToken import com.mogo.eagle.core.data.enums.DataSourceType import com.mogo.eagle.core.data.map.MogoLocation import com.mogo.eagle.core.function.call.autopilot.CallerChassisDoorStateListenerManager +import com.mogo.eagle.core.function.call.autopilot.CallerChassisGnssListenerManager import com.mogo.eagle.core.function.call.autopilot.CallerChassisLocationGCJ02ListenerManager import com.mogo.eagle.core.function.call.autopilot.CallerPlanningRottingListenerManager -import com.mogo.eagle.core.utilcode.geometry.S2LaxPolygonShape.MultiList import com.mogo.eagle.core.utilcode.mogo.logger.CallerLogger import com.mogo.eagle.core.utilcode.mogo.logger.scene.SceneConstant import com.mogo.eagle.core.utilcode.util.GsonUtils @@ -83,15 +83,12 @@ object DebugDataDispatch { line.toString(), object : TypeToken() {}.type ) - val mogoLocation = MogoLocation() - mogoLocation.latitude = list.msg.GnssInfo.latitude - mogoLocation.longitude = list.msg.GnssInfo.longitude - mogoLocation.heading = list.msg.GnssInfo.heading - mogoLocation.gnssSpeed = list.msg.GnssInfo.gnssSpeed.toFloat() - CallerChassisLocationGCJ02ListenerManager.invokeChassisLocationGCJ02( - mogoLocation, - DataSourceType.OBU - ) + val newBuilder = MessagePad.GnssInfo.newBuilder() + newBuilder.latitude = list.msg.GnssInfo.latitude + newBuilder.longitude = list.msg.GnssInfo.longitude + newBuilder.heading = list.msg.GnssInfo.heading + newBuilder.gnssSpeed = list.msg.GnssInfo.gnssSpeed + CallerChassisGnssListenerManager.invokeChassisGnssListener(newBuilder.build()) Thread.sleep(100) } } catch (e: IOException) {