diff --git a/OCH/mogo-och-bus/src/main/java/com/mogo/och/bus/presenter/OchBusPresenter.java b/OCH/mogo-och-bus/src/main/java/com/mogo/och/bus/presenter/OchBusPresenter.java index 5d09d9cbba..0505f0343f 100644 --- a/OCH/mogo-och-bus/src/main/java/com/mogo/och/bus/presenter/OchBusPresenter.java +++ b/OCH/mogo-och-bus/src/main/java/com/mogo/och/bus/presenter/OchBusPresenter.java @@ -31,7 +31,7 @@ import com.mogo.och.bus.fragment.OchBusFragment; import com.mogo.och.bus.net.IOchBusApiService; import com.mogo.service.adas.IMogoAdasOCHCallback; import com.mogo.eagle.core.data.autopilot.AutopilotControlPam; -import com.mogo.eagle.core.data.autopilot.AutopilotStationInfo; +import com.mogo.eagle.core.data.autopilot.AutopilotStationsInfo; import com.mogo.utils.logger.Logger; import com.mogo.utils.network.RequestOptions; import com.mogo.utils.network.utils.GsonUtil; @@ -354,7 +354,7 @@ public class OchBusPresenter extends Presenter< OchBusFragment > implements IMog } @Override - public void onArriveAt( AutopilotStationInfo data ) { + public void onArriveAt( AutopilotStationsInfo data ) { if ( currentStationIndex >= stationList.size() - 1 ) { Logger.e( TAG, "到站异常,取消后续操作" ); return; diff --git a/OCH/mogo-och-taxi/src/main/java/com/mogo/och/taxi/MogoOCHTaxiModel.java b/OCH/mogo-och-taxi/src/main/java/com/mogo/och/taxi/MogoOCHTaxiModel.java index 7978e5bb74..a03caa51e8 100644 --- a/OCH/mogo-och-taxi/src/main/java/com/mogo/och/taxi/MogoOCHTaxiModel.java +++ b/OCH/mogo-och-taxi/src/main/java/com/mogo/och/taxi/MogoOCHTaxiModel.java @@ -16,7 +16,7 @@ import com.mogo.module.common.constants.HostConst; import com.mogo.och.taxi.ui.OCHTaxiUiController; import com.mogo.service.adas.IMogoAdasOCHCallback; import com.mogo.eagle.core.data.autopilot.AutopilotControlPam; -import com.mogo.eagle.core.data.autopilot.AutopilotStationInfo; +import com.mogo.eagle.core.data.autopilot.AutopilotStationsInfo; import com.mogo.service.cloud.socket.IMogoLifecycleListener; import com.mogo.service.cloud.socket.IMogoOnMessageListener; import com.mogo.service.intent.IMogoIntentListener; @@ -714,7 +714,7 @@ class MogoOCHTaxiModel { */ private class OCHArriveNotifyCallback implements IMogoAdasOCHCallback { @Override - public void onArriveAt( AutopilotStationInfo data ) { + public void onArriveAt( AutopilotStationsInfo data ) { if ( data == null ) { return; } diff --git a/OCH/mogo-och-taxi/src/main/java/com/mogo/och/taxi/ui/OCHTaxiFragment.java b/OCH/mogo-och-taxi/src/main/java/com/mogo/och/taxi/ui/OCHTaxiFragment.java index af01af3462..430e3479db 100644 --- a/OCH/mogo-och-taxi/src/main/java/com/mogo/och/taxi/ui/OCHTaxiFragment.java +++ b/OCH/mogo-och-taxi/src/main/java/com/mogo/och/taxi/ui/OCHTaxiFragment.java @@ -26,7 +26,7 @@ import com.mogo.och.taxi.R; import com.mogo.och.view.SlidePanelView; import com.mogo.service.adas.IMogoAdasOCHCallback; import com.mogo.service.adas.IMogoAdasRouteCallBack; -import com.mogo.eagle.core.data.autopilot.AutopilotStationInfo; +import com.mogo.eagle.core.data.autopilot.AutopilotStationsInfo; import com.mogo.service.statusmanager.IMogoStatusChangedListener; import com.mogo.service.statusmanager.StatusDescriptor; import com.mogo.utils.logger.Logger; @@ -524,7 +524,7 @@ class OCHTaxiFragment extends BaseOchFragment< OCHTaxiView, OCHTaxiPresenter > i } @Override - public void onArriveAt(AutopilotStationInfo data) { + public void onArriveAt(AutopilotStationsInfo data) { Logger.d( TAG, "行程结束"); MogoApisHandler.getInstance().getApis().getAdasControllerApi().cancelAutopilot(); } diff --git a/core/function-impl/mogo-core-function-autopilot/src/main/java/com/mogo/eagle/core/function/autopilot/MoGoAutoPilotProvider.kt b/core/function-impl/mogo-core-function-autopilot/src/main/java/com/mogo/eagle/core/function/autopilot/MoGoAutopilotsProvider.kt similarity index 96% rename from core/function-impl/mogo-core-function-autopilot/src/main/java/com/mogo/eagle/core/function/autopilot/MoGoAutoPilotProvider.kt rename to core/function-impl/mogo-core-function-autopilot/src/main/java/com/mogo/eagle/core/function/autopilot/MoGoAutopilotsProvider.kt index 87c1fdf69e..e7ab2b0646 100644 --- a/core/function-impl/mogo-core-function-autopilot/src/main/java/com/mogo/eagle/core/function/autopilot/MoGoAutoPilotProvider.kt +++ b/core/function-impl/mogo-core-function-autopilot/src/main/java/com/mogo/eagle/core/function/autopilot/MoGoAutopilotsProvider.kt @@ -5,7 +5,7 @@ import com.alibaba.android.arouter.facade.annotation.Route import com.mogo.eagle.core.data.autopilot.AutopilotControlCmdPam import com.mogo.eagle.core.data.autopilot.AutopilotControlPam import com.mogo.eagle.core.data.constants.MogoServicePaths -import com.mogo.eagle.core.function.api.autopilot.IMoGoAutopilotProvider +import com.mogo.eagle.core.function.api.autopilot.IMoGoAutopilotsProvider import com.mogo.eagle.core.utilcode.util.GsonUtils import com.mogo.eagle.core.utilcode.util.LogUtils import com.zhidao.support.adas.high.AdasManager @@ -16,8 +16,8 @@ import com.zhidao.support.adas.high.AdasManager * 域控制器 */ @Route(path = MogoServicePaths.PATH_AUTO_PILOT) -class MoGoAutopilotProvider : - IMoGoAutopilotProvider { +class MoGoAutopilotsProvider : + IMoGoAutopilotsProvider { private val TAG = "MoGoAutoPilotProvider" override val functionName: String diff --git a/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/ui/setting/DebugSettingView.kt b/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/ui/setting/DebugSettingView.kt index cf5ef26e06..e9e9bfdd3d 100644 --- a/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/ui/setting/DebugSettingView.kt +++ b/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/ui/setting/DebugSettingView.kt @@ -11,7 +11,7 @@ import com.mogo.eagle.core.data.autopilot.* import com.mogo.eagle.core.data.constants.MoGoConfig import com.mogo.eagle.core.data.obu.ObuStatusInfo import com.mogo.eagle.core.data.traffic.TrafficData -import com.mogo.eagle.core.function.api.autopilot.IMoGoAutopilotStatusListener +import com.mogo.eagle.core.function.api.autopilot.IMoGoAutopilotsStatusListener import com.mogo.eagle.core.function.api.obu.IMoGoObuStatusListener import com.mogo.eagle.core.function.call.autopilot.CallerAutoPilotManager import com.mogo.eagle.core.function.call.autopilot.CallerAutoPilotStatusListenerManager @@ -38,7 +38,7 @@ class DebugSettingView @JvmOverloads constructor( attrs: AttributeSet? = null, defStyleAttr: Int = 0 ) : ConstraintLayout(context, attrs, defStyleAttr), IMoGoObuStatusListener, - IMoGoAutopilotStatusListener { + IMoGoAutopilotsStatusListener { private val TAG = "DebugSettingView" @@ -107,11 +107,11 @@ class DebugSettingView @JvmOverloads constructor( tvObuInfo.text = GsonUtils.toJson(obuStatusInfo) } - override fun onAutopilotStatusResponse(autoPilotStatusInfo: AutopilotStatusInfo) { - tvAutopilotInfo.text = GsonUtils.toJson(autoPilotStatusInfo) + override fun onAutopilotStatusResponse(autoPilotStatussInfo: AutopilotStatussInfo) { + tvAutopilotInfo.text = GsonUtils.toJson(autoPilotStatussInfo) } - override fun onAutopilotArriveAtStation(autopilotWayArrive: AutopilotStationInfo?) { + override fun onAutopilotArriveAtStation(autopilotWayArrive: AutopilotStationsInfo?) { } diff --git a/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/ui/widget/AutoPilotStatusView.kt b/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/ui/widget/AutoPilotStatusView.kt index dfcd3ae0df..5ea0049bc3 100644 --- a/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/ui/widget/AutoPilotStatusView.kt +++ b/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/ui/widget/AutoPilotStatusView.kt @@ -6,7 +6,7 @@ import android.view.LayoutInflater import android.view.View import androidx.constraintlayout.widget.ConstraintLayout import com.mogo.eagle.core.data.autopilot.AutopilotControlPam -import com.mogo.eagle.core.data.autopilot.AutopilotStationInfo +import com.mogo.eagle.core.data.autopilot.AutopilotStationsInfo import com.mogo.eagle.core.function.call.hmi.CallerHmiListenerManager import com.mogo.eagle.core.function.hmi.R import com.mogo.eagle.core.utilcode.util.LogUtils @@ -103,7 +103,7 @@ class AutoPilotStatusView @JvmOverloads constructor( } } - override fun onArriveAt(data: AutopilotStationInfo?) { + override fun onArriveAt(data: AutopilotStationsInfo?) { } diff --git a/core/function-impl/mogo-core-function-hmi/src/main/res/layout/fragment_hmi.xml b/core/function-impl/mogo-core-function-hmi/src/main/res/layout/fragment_hmi.xml index 3b910a2110..efe0099b9e 100644 --- a/core/function-impl/mogo-core-function-hmi/src/main/res/layout/fragment_hmi.xml +++ b/core/function-impl/mogo-core-function-hmi/src/main/res/layout/fragment_hmi.xml @@ -25,7 +25,7 @@ app:layout_constraintTop_toTopOf="parent" /> = + private val M_AUTOPILOTS_STATUS_LISTENERS: HashMap = HashMap() /** * 查询AutoPilot状态 */ - fun getAutoPilotStatusInfo(): AutopilotStatusInfo { - return mAutopilotStatusInfo + fun getAutoPilotStatusInfo(): AutopilotStatussInfo { + return mAutopilotStatussInfo } /** * 查询AutoPilot状态 */ fun getAutoPilotStatusInfoJsonString(): String { - return GsonUtils.toJson(mAutopilotStatusInfo) + return GsonUtils.toJson(mAutopilotStatussInfo) } /** @@ -45,10 +45,10 @@ object CallerAutoPilotStatusListenerManager : CallerBase() { */ fun addListener( @Nullable tag: String, - @Nullable listener: IMoGoAutopilotStatusListener + @Nullable listener: IMoGoAutopilotsStatusListener ) { - M_AUTOPILOT_STATUS_LISTENERS[tag] = listener - listener.onAutopilotStatusResponse(mAutopilotStatusInfo) + M_AUTOPILOTS_STATUS_LISTENERS[tag] = listener + listener.onAutopilotStatusResponse(mAutopilotStatussInfo) } /** @@ -56,7 +56,7 @@ object CallerAutoPilotStatusListenerManager : CallerBase() { * @param tag 标记,用来注销监听使用 */ fun removeListener(@Nullable tag: String) { - M_AUTOPILOT_STATUS_LISTENERS.remove(tag) + M_AUTOPILOTS_STATUS_LISTENERS.remove(tag) } /** @@ -64,9 +64,9 @@ object CallerAutoPilotStatusListenerManager : CallerBase() { * @param listener 要删除的监听对象 */ fun removeListener(@Nullable listener: IMoGoObuStatusListener) { - M_AUTOPILOT_STATUS_LISTENERS.forEach { + M_AUTOPILOTS_STATUS_LISTENERS.forEach { if (it.value == listener) { - M_AUTOPILOT_STATUS_LISTENERS.remove(it.key) + M_AUTOPILOTS_STATUS_LISTENERS.remove(it.key) } } } @@ -76,38 +76,38 @@ object CallerAutoPilotStatusListenerManager : CallerBase() { */ @Synchronized fun invokeAutoPilotStatus() { - LogUtils.dTag(TAG, "$mAutopilotStatusInfo") - invokeAutoPilotStatus(mAutopilotStatusInfo) + LogUtils.dTag(TAG, "$mAutopilotStatussInfo") + invokeAutoPilotStatus(mAutopilotStatussInfo) } /** * 自动驾驶状态信息 回调 - * @param autopilotStatusInfo 自动驾驶状态信息 + * @param autopilotStatussInfo 自动驾驶状态信息 */ @Synchronized - fun invokeAutoPilotStatus(autopilotStatusInfo: AutopilotStatusInfo) { - LogUtils.dTag(TAG, "$autopilotStatusInfo") - mAutopilotStatusInfo = autopilotStatusInfo - M_AUTOPILOT_STATUS_LISTENERS.forEach { + fun invokeAutoPilotStatus(autopilotStatussInfo: AutopilotStatussInfo) { + LogUtils.dTag(TAG, "$autopilotStatussInfo") + mAutopilotStatussInfo = autopilotStatussInfo + M_AUTOPILOTS_STATUS_LISTENERS.forEach { val tag = it.key val listener = it.value LogUtils.dTag(TAG, "tag:$tag listener:$listener") - listener.onAutopilotStatusResponse(mAutopilotStatusInfo) + listener.onAutopilotStatusResponse(mAutopilotStatussInfo) } } /** * 自动驾驶站点信息 回调 - * @param autopilotStationInfo 自动驾驶网约车回调数据 + * @param autopilotStationsInfo 自动驾驶网约车回调数据 */ @Synchronized - fun invokeArriveAtStation(autopilotStationInfo: AutopilotStationInfo) { - LogUtils.dTag(TAG, "$autopilotStationInfo") - M_AUTOPILOT_STATUS_LISTENERS.forEach { + fun invokeArriveAtStation(autopilotStationsInfo: AutopilotStationsInfo) { + LogUtils.dTag(TAG, "$autopilotStationsInfo") + M_AUTOPILOTS_STATUS_LISTENERS.forEach { val tag = it.key val listener = it.value LogUtils.dTag(TAG, "tag:$tag listener:$listener") - listener.onAutopilotArriveAtStation(autopilotStationInfo) + listener.onAutopilotArriveAtStation(autopilotStationsInfo) } } @@ -118,7 +118,7 @@ object CallerAutoPilotStatusListenerManager : CallerBase() { @Synchronized fun invokeAutopilotCarStateData(autoPilotCarStateInfo: AutopilotCarStateInfo?) { LogUtils.dTag(TAG, "$autoPilotCarStateInfo") - M_AUTOPILOT_STATUS_LISTENERS.forEach { + M_AUTOPILOTS_STATUS_LISTENERS.forEach { val tag = it.key val listener = it.value LogUtils.dTag(TAG, "tag:$tag listener:$listener") @@ -133,7 +133,7 @@ object CallerAutoPilotStatusListenerManager : CallerBase() { @Synchronized fun invokeAutopilotRoute(routeInfo: AutopilotRouteInfo?) { LogUtils.dTag(TAG, "$routeInfo") - M_AUTOPILOT_STATUS_LISTENERS.forEach { + M_AUTOPILOTS_STATUS_LISTENERS.forEach { val tag = it.key val listener = it.value LogUtils.dTag(TAG, "tag:$tag listener:$listener") @@ -147,7 +147,7 @@ object CallerAutoPilotStatusListenerManager : CallerBase() { @Synchronized fun invokeAutopilotSNRequest() { LogUtils.dTag(TAG, "") - M_AUTOPILOT_STATUS_LISTENERS.forEach { + M_AUTOPILOTS_STATUS_LISTENERS.forEach { val tag = it.key val listener = it.value LogUtils.dTag(TAG, "tag:$tag listener:$listener") @@ -161,7 +161,7 @@ object CallerAutoPilotStatusListenerManager : CallerBase() { @Synchronized fun invokeAutopilotGuardian(guardianInfo: AutopilotGuardianStatusInfo?) { LogUtils.dTag(TAG, "$guardianInfo") - M_AUTOPILOT_STATUS_LISTENERS.forEach { + M_AUTOPILOTS_STATUS_LISTENERS.forEach { val tag = it.key val listener = it.value LogUtils.dTag(TAG, "tag:$tag listener:$listener") @@ -175,7 +175,7 @@ object CallerAutoPilotStatusListenerManager : CallerBase() { @Synchronized fun invokeIdentifyDataUpdate(trafficData: List?) { LogUtils.dTag(TAG, "$trafficData") - M_AUTOPILOT_STATUS_LISTENERS.forEach { + M_AUTOPILOTS_STATUS_LISTENERS.forEach { val tag = it.key val listener = it.value LogUtils.dTag(TAG, "tag:$tag listener:$listener") @@ -189,7 +189,7 @@ object CallerAutoPilotStatusListenerManager : CallerBase() { @Synchronized fun invokeAutopilotWarnMessage(autopilotWarnMessage: AutopilotWarnMessage?) { LogUtils.dTag(TAG, "$autopilotWarnMessage") - M_AUTOPILOT_STATUS_LISTENERS.forEach { + M_AUTOPILOTS_STATUS_LISTENERS.forEach { val tag = it.key val listener = it.value LogUtils.dTag(TAG, "tag:$tag listener:$listener") diff --git a/modules/mogo-module-adas/src/main/java/com/mogo/module/adas/AdasAutoPilotManager.java b/modules/mogo-module-adas/src/main/java/com/mogo/module/adas/AdasAutoPilotManager.java index c79e2b33c3..4f562a5f87 100644 --- a/modules/mogo-module-adas/src/main/java/com/mogo/module/adas/AdasAutoPilotManager.java +++ b/modules/mogo-module-adas/src/main/java/com/mogo/module/adas/AdasAutoPilotManager.java @@ -13,7 +13,7 @@ import android.os.Handler; import android.os.Message; import com.mogo.eagle.core.data.autopilot.AutopilotRouteInfo; -import com.mogo.eagle.core.data.autopilot.AutopilotStatusInfo; +import com.mogo.eagle.core.data.autopilot.AutopilotStatussInfo; import com.mogo.eagle.core.data.map.MogoLatLng; import com.mogo.map.location.MogoLocation; import com.mogo.map.navi.IMogoCarLocationChangedListener2; @@ -31,7 +31,6 @@ import com.mogo.service.cloud.socket.IMogoOnMessageListener; import com.mogo.utils.logger.Logger; import com.mogo.utils.network.utils.GsonUtil; import com.zhidao.support.adas.high.bean.AutopilotRoute; -import com.zhidao.support.adas.high.bean.AutopilotStatus; import java.util.ArrayList; import java.util.List; @@ -131,7 +130,7 @@ public class AdasAutoPilotManager implements IMogoOnMessageListener map = new HashMap<>(); diff --git a/modules/mogo-module-common/src/main/java/com/mogo/module/common/datacenter/SnapshotLocationDataCenter.java b/modules/mogo-module-common/src/main/java/com/mogo/module/common/datacenter/SnapshotLocationDataCenter.java index 10ca090421..5a9344d8fc 100644 --- a/modules/mogo-module-common/src/main/java/com/mogo/module/common/datacenter/SnapshotLocationDataCenter.java +++ b/modules/mogo-module-common/src/main/java/com/mogo/module/common/datacenter/SnapshotLocationDataCenter.java @@ -2,7 +2,7 @@ package com.mogo.module.common.datacenter; import com.mogo.commons.FunctionBuildConfig; import com.mogo.commons.debug.DebugConfig; -import com.mogo.eagle.core.data.autopilot.AutopilotStatusInfo; +import com.mogo.eagle.core.data.autopilot.AutopilotStatussInfo; import com.mogo.eagle.core.function.call.autopilot.CallerAutoPilotStatusListenerManager; import com.mogo.module.common.MogoApisHandler; import com.mogo.service.cloud.location.CloudLocationInfo; @@ -94,9 +94,9 @@ public class SnapshotLocationDataCenter { // 使用与渠道配置一样的gps提供者提供的数据 if (gpsProvider == FunctionBuildConfig.gpsProvider) { //测试面板状态同步 - AutopilotStatusInfo autopilotStatusInfo = CallerAutoPilotStatusListenerManager.INSTANCE.getAutoPilotStatusInfo(); - autopilotStatusInfo.setLocationLat(lat); - autopilotStatusInfo.setLocationLon(lon); + AutopilotStatussInfo autopilotStatussInfo = CallerAutoPilotStatusListenerManager.INSTANCE.getAutoPilotStatusInfo(); + autopilotStatussInfo.setLocationLat(lat); + autopilotStatussInfo.setLocationLon(lon); CallerAutoPilotStatusListenerManager.INSTANCE.invokeAutoPilotStatus(); DebugConfig.setStatusData(DebugConfig.sLon, lon); diff --git a/modules/mogo-module-service/src/main/java/com/mogo/module/service/dispatch/DispatchAutoPilotManager.java b/modules/mogo-module-service/src/main/java/com/mogo/module/service/dispatch/DispatchAutoPilotManager.java index 9b1f3b06c6..91a85c9f07 100644 --- a/modules/mogo-module-service/src/main/java/com/mogo/module/service/dispatch/DispatchAutoPilotManager.java +++ b/modules/mogo-module-service/src/main/java/com/mogo/module/service/dispatch/DispatchAutoPilotManager.java @@ -10,7 +10,7 @@ import android.os.Handler; import android.os.Message; import com.mogo.cloud.commons.utils.CoordinateUtils; -import com.mogo.eagle.core.data.autopilot.AutopilotStationInfo; +import com.mogo.eagle.core.data.autopilot.AutopilotStationsInfo; import com.mogo.eagle.core.data.autopilot.AutopilotControlPam; import com.mogo.eagle.core.data.map.MogoLatLng; import com.mogo.eagle.core.function.api.hmi.autopilot.IMoGoCheckAutoPilotBtnListener; @@ -191,7 +191,7 @@ public class DispatchAutoPilotManager implements IMogoOnMessageListener map = new HashMap<>(); map.put("sn", sn); map.put("data", GsonUtil.jsonFromObject(reportedRoute)); diff --git a/services/mogo-service-api/src/main/java/com/mogo/service/adas/IMogoAdasOCHCallback.java b/services/mogo-service-api/src/main/java/com/mogo/service/adas/IMogoAdasOCHCallback.java index 0a16fc0848..99b9a7a5c3 100644 --- a/services/mogo-service-api/src/main/java/com/mogo/service/adas/IMogoAdasOCHCallback.java +++ b/services/mogo-service-api/src/main/java/com/mogo/service/adas/IMogoAdasOCHCallback.java @@ -1,6 +1,6 @@ package com.mogo.service.adas; -import com.mogo.eagle.core.data.autopilot.AutopilotStationInfo; +import com.mogo.eagle.core.data.autopilot.AutopilotStationsInfo; public /** @@ -29,7 +29,7 @@ interface IMogoAdasOCHCallback { * 到站 * @param data 所到车站的简单信息 */ - void onArriveAt( AutopilotStationInfo data ); + void onArriveAt( AutopilotStationsInfo data ); /** * 自动驾驶状态发生改变 diff --git a/services/mogo-service/src/main/java/com/mogo/service/impl/adas/MogoADASController.java b/services/mogo-service/src/main/java/com/mogo/service/impl/adas/MogoADASController.java index eb619424bc..e0443d66a8 100644 --- a/services/mogo-service/src/main/java/com/mogo/service/impl/adas/MogoADASController.java +++ b/services/mogo-service/src/main/java/com/mogo/service/impl/adas/MogoADASController.java @@ -15,8 +15,8 @@ import com.mogo.eagle.core.data.autopilot.AutopilotCarStateInfo; import com.mogo.eagle.core.data.autopilot.AutopilotControlCmdPam; import com.mogo.eagle.core.data.autopilot.AutopilotControlPam; import com.mogo.eagle.core.data.autopilot.AutopilotRouteInfo; -import com.mogo.eagle.core.data.autopilot.AutopilotStationInfo; -import com.mogo.eagle.core.data.autopilot.AutopilotStatusInfo; +import com.mogo.eagle.core.data.autopilot.AutopilotStationsInfo; +import com.mogo.eagle.core.data.autopilot.AutopilotStatussInfo; import com.mogo.eagle.core.data.autopilot.AutopilotWarnMessage; import com.mogo.eagle.core.data.constants.MogoServicePaths; import com.mogo.eagle.core.data.map.MogoLatLng; @@ -280,7 +280,7 @@ public class MogoADASController implements IMogoADASController { } @Override - public void autopilotArrive(AutopilotStationInfo autopilotArriveModel) { + public void autopilotArrive(AutopilotStationsInfo autopilotArriveModel) { Logger.d(TAG, "autopilotArriveModel " + autopilotArriveModel); if (autopilotArriveModel == null) { Logger.d(TAG, "autopilotArrive autopilotArriveModel is null"); @@ -289,7 +289,7 @@ public class MogoADASController implements IMogoADASController { Logger.d(TAG, "autopilotArrive : " + autopilotArriveModel.toString()); if (!mAdasOCHCallback.isEmpty()) { for (IMogoAdasOCHCallback cb : mAdasOCHCallback) { - cb.onArriveAt(new AutopilotStationInfo( + cb.onArriveAt(new AutopilotStationsInfo( autopilotArriveModel.getType(), autopilotArriveModel.getLon(), autopilotArriveModel.getLat()) @@ -324,7 +324,7 @@ public class MogoADASController implements IMogoADASController { } @Override - public void notifyAutopilotState(AutopilotStatusInfo autopilotStatus) { + public void notifyAutopilotState(AutopilotStatussInfo autopilotStatus) { Logger.d(TAG, "notifyAutopilotState: " + GsonUtil.jsonFromObject(autopilotStatus)); DebugConfig.setAutoPilotStatus(autopilotStatus.getState() + ""); @@ -577,7 +577,7 @@ public class MogoADASController implements IMogoADASController { public void onAutopilotArriveLike(int carType) { if (!mAdasOCHCallback.isEmpty()) { for (IMogoAdasOCHCallback cb : mAdasOCHCallback) { - cb.onArriveAt(new AutopilotStationInfo( + cb.onArriveAt(new AutopilotStationsInfo( carType, 116.09888888, 39.999999) @@ -607,7 +607,7 @@ public class MogoADASController implements IMogoADASController { if (state == -1) { if (!mAdasOCHCallback.isEmpty()) { for (IMogoAdasOCHCallback cb : mAdasOCHCallback) { - cb.onArriveAt(new AutopilotStationInfo(1, 1d, 1d)); + cb.onArriveAt(new AutopilotStationsInfo(1, 1d, 1d)); } } } else {