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) {