From 33c51b7ace37691612b5b850254ad0b3e9af5374 Mon Sep 17 00:00:00 2001 From: donghongyu Date: Thu, 2 Feb 2023 19:32:28 +0800 Subject: [PATCH] =?UTF-8?q?[dev=5Farch=5Fopt=5F3.0]=20[Change]=20[=201?= =?UTF-8?q?=E3=80=81=E8=A7=A3=E5=86=B3=E5=90=88=E5=B9=B6=E5=86=B2=E7=AA=81?= =?UTF-8?q?=20]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: donghongyu --- .../core/function/datacenter/location/README.md | 17 +++++++++++------ .../mogo/eagle/core/function/map/MapFragment.kt | 10 ---------- 2 files changed, 11 insertions(+), 16 deletions(-) diff --git a/core/function-impl/mogo-core-function-datacenter/src/main/java/com/mogo/eagle/core/function/datacenter/location/README.md b/core/function-impl/mogo-core-function-datacenter/src/main/java/com/mogo/eagle/core/function/datacenter/location/README.md index 4ccbd205e0..6edf070634 100644 --- a/core/function-impl/mogo-core-function-datacenter/src/main/java/com/mogo/eagle/core/function/datacenter/location/README.md +++ b/core/function-impl/mogo-core-function-datacenter/src/main/java/com/mogo/eagle/core/function/datacenter/location/README.md @@ -4,14 +4,19 @@ ```kotlin // 注册监听位置变换,唯一标记,要接受数据的HZ,回掉监听 -MoGoLocationManager.addListener(Companion.functionName, 20, object : IMoGoLocationListener { - override fun onLocationChanged( - gnssInfo: MessagePad.GnssInfo, - sourceType: DataSourceType - ) { +CallerChassisLocationWGS84ListenerManager.addListener(Companion.functionName, 20,object :IMoGoChassisLocationWGS84Listener{ + override fun onChassisLocationWGS84(gnssInfo: MogoLocation) { TODO("Not yet implemented") } }) // 设置数据回调频率,单位HZ,1HZ的周期是1秒;50HZ的周期是1/50=0.02秒;10HZ的周期是1/10=0.1秒。 -MoGoLocationManager.setListenerHz(Companion.functionName, 20) +CallerChassisLocationWGS84ListenerManager.setListenerHz(Companion.functionName, 20) + +// 注册监听位置变换,唯一标记,要接受数据的HZ,回掉监听 +CallerChassisLocationGCJ20ListenerManager.addListener(Companion.functionName, 20,object :IMoGoChassisLocationGCJ02Listener{ + override fun onChassisLocationGCJ02(gnssInfo: MogoLocation) { + TODO("Not yet implemented") + } +}) + ``` \ No newline at end of file diff --git a/core/function-impl/mogo-core-function-map/src/main/java/com/mogo/eagle/core/function/map/MapFragment.kt b/core/function-impl/mogo-core-function-map/src/main/java/com/mogo/eagle/core/function/map/MapFragment.kt index b1b6ae996b..09c70eda05 100644 --- a/core/function-impl/mogo-core-function-map/src/main/java/com/mogo/eagle/core/function/map/MapFragment.kt +++ b/core/function-impl/mogo-core-function-map/src/main/java/com/mogo/eagle/core/function/map/MapFragment.kt @@ -12,7 +12,6 @@ import com.mogo.eagle.core.data.map.CenterLine import com.mogo.eagle.core.data.map.MogoLocation import com.mogo.eagle.core.function.api.autopilot.IMoGoChassisLamplightListener import com.mogo.eagle.core.function.api.autopilot.IMoGoChassisLocationWGS84Listener -import com.mogo.eagle.core.function.api.autopilot.IMoGoPlanningRottingListener import com.mogo.eagle.core.function.api.map.hd.IMoGoMapFragmentProvider import com.mogo.eagle.core.function.api.setting.IMoGoSkinModeChangeListener import com.mogo.eagle.core.function.business.MapPointCloudSubscriber @@ -21,17 +20,10 @@ import com.mogo.eagle.core.function.business.identify.MapIdentifySubscriber import com.mogo.eagle.core.function.business.routeoverlay.MogoRouteOverlayManager import com.mogo.eagle.core.function.call.autopilot.CallerChassisLamplightListenerManager import com.mogo.eagle.core.function.call.autopilot.CallerChassisLocationWGS84ListenerManager -import com.mogo.eagle.core.function.call.autopilot.CallerPlanningRottingListenerManager import com.mogo.eagle.core.function.call.hmi.CallerHmiManager.showBrakeLight import com.mogo.eagle.core.function.call.hmi.CallerHmiManager.showTurnLight import com.mogo.eagle.core.function.call.map.CallerHDMapManager import com.mogo.eagle.core.function.call.setting.CallerSkinModeListenerManager -import com.mogo.eagle.core.function.overview.InfStructureManager -import com.mogo.eagle.core.function.overview.InfStructureManager.savePlanningData -import com.mogo.eagle.core.function.overview.obtainViewModel -import com.mogo.eagle.core.function.overview.vm.OverViewModel -import com.mogo.eagle.core.function.datacenter.location.IMoGoLocationListener -import com.mogo.eagle.core.function.datacenter.location.MoGoLocationManager import com.mogo.eagle.core.utilcode.mogo.logger.CallerLogger.d import com.mogo.eagle.core.utilcode.mogo.logger.CallerLogger.e import com.mogo.eagle.core.utilcode.mogo.logger.scene.SceneConstant @@ -42,7 +34,6 @@ import com.mogo.map.MogoMapView import com.mogo.map.uicontroller.IMogoMapUIController import com.zhidaoauto.map.sdk.open.MapAutoApi import com.zhidaoauto.map.sdk.open.business.PointCloudHelper -import mogo.telematics.pad.MessagePad /** * @author donghongyu @@ -56,7 +47,6 @@ class MapFragment : MvpFragment(), IMoGoMapFragmentProvider, IMoGoSkinModeChangeListener, IMoGoChassisLocationWGS84Listener, - IMoGoPlanningRottingListener, IMoGoChassisLamplightListener { private var mMogoMapView: MogoMapView? = null