From 979a070fa19195d5ae0be988ff53c20f74e9111c Mon Sep 17 00:00:00 2001 From: wangmingjun Date: Fri, 19 May 2023 14:32:21 +0800 Subject: [PATCH 1/6] =?UTF-8?q?[3.2.0]=20bus/taxi/=E6=8E=A5=E9=A9=B3?= =?UTF-8?q?=E4=B9=98=E5=AE=A2=E5=B1=8F=E5=A2=9E=E5=8A=A0=E4=B8=BB=E5=8A=A8?= =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E8=BD=A8=E8=BF=B9=E4=B8=80=E6=AC=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../och/bus/passenger/model/BusPassengerModel.java | 10 ++++++++-- .../och/bus/passenger/model/BusPassengerModel.java | 6 +++++- .../och/taxi/passenger/model/TaxiPassengerModel.java | 2 ++ 3 files changed, 15 insertions(+), 3 deletions(-) diff --git a/OCH/mogo-och-bus-passenger/src/jinlvvan/java/com/mogo/och/bus/passenger/model/BusPassengerModel.java b/OCH/mogo-och-bus-passenger/src/jinlvvan/java/com/mogo/och/bus/passenger/model/BusPassengerModel.java index 9e2bd8577a..5f386b5de0 100644 --- a/OCH/mogo-och-bus-passenger/src/jinlvvan/java/com/mogo/och/bus/passenger/model/BusPassengerModel.java +++ b/OCH/mogo-och-bus-passenger/src/jinlvvan/java/com/mogo/och/bus/passenger/model/BusPassengerModel.java @@ -29,6 +29,7 @@ import com.mogo.eagle.core.function.api.autopilot.IMoGoAutopilotStatusListener; import com.mogo.eagle.core.function.api.autopilot.IMoGoChassisLocationGCJ02Listener; import com.mogo.eagle.core.function.api.autopilot.IMoGoPlanningRottingListener; import com.mogo.eagle.core.function.api.telematic.IReceivedMsgListener; +import com.mogo.eagle.core.function.call.autopilot.CallerAutoPilotControlManager; import com.mogo.eagle.core.function.call.autopilot.CallerAutoPilotStatusListenerManager; import com.mogo.eagle.core.function.call.autopilot.CallerChassisLocationGCJ02ListenerManager; import com.mogo.eagle.core.function.call.autopilot.CallerPlanningRottingListenerManager; @@ -59,7 +60,6 @@ import com.mogo.och.bus.passenger.network.BusPassengerServiceManager; import com.mogo.och.common.module.bean.dpmsg.AppConnectMsg; import com.mogo.och.common.module.bean.dpmsg.BaseDPMsg; import com.mogo.och.common.module.bean.dpmsg.DPMsgType; -import com.mogo.och.common.module.bean.dpmsg.LoginCacheStatus; import com.mogo.och.common.module.biz.common.socketmessage.OCHSocketMessageManager; import com.mogo.och.common.module.biz.constant.OchCommonConst; import com.mogo.och.common.module.biz.network.OchCommonServiceCallback; @@ -189,13 +189,16 @@ public class BusPassengerModel { if (routesResult != null) { routesResult = null; mNextStationIndex = 0; - startOrStopCalculateRouteInfo(false); } + startOrStopCalculateRouteInfo(false); + if (mRouteLineInfoCallback != null){ mRouteLineInfoCallback.showNoTaskView(); } + mRoutePoints.clear(); + return; } if (routesResult != null && data.getResult().equals(routesResult)){ @@ -464,6 +467,9 @@ public class BusPassengerModel { int state = autopilotStatusInfo.getState(); if (state == IMoGoAutopilotStatusListener.STATUS_AUTOPILOT_RUNNING) { //2022.7.20 自动驾驶更换成带档位的 + if(state != mPreAutoStatus && null != routesResult){ + CallerAutoPilotControlManager.INSTANCE.getGlobalPath(); + } if (mADASStatusCallback != null) mADASStatusCallback.onAutopilotRunning(); } else if (state == IMoGoAutopilotStatusListener.STATUS_AUTOPILOT_ENABLE) { if(state != mPreAutoStatus){ diff --git a/OCH/mogo-och-shuttle-passenger/src/jinlvvan/java/com/mogo/och/bus/passenger/model/BusPassengerModel.java b/OCH/mogo-och-shuttle-passenger/src/jinlvvan/java/com/mogo/och/bus/passenger/model/BusPassengerModel.java index 5ca3230d04..b32f39aa8e 100644 --- a/OCH/mogo-och-shuttle-passenger/src/jinlvvan/java/com/mogo/och/bus/passenger/model/BusPassengerModel.java +++ b/OCH/mogo-och-shuttle-passenger/src/jinlvvan/java/com/mogo/och/bus/passenger/model/BusPassengerModel.java @@ -21,6 +21,7 @@ import com.mogo.commons.module.intent.IntentManager; import com.mogo.commons.module.status.IMogoStatusChangedListener; import com.mogo.commons.module.status.MogoStatusManager; import com.mogo.eagle.core.function.api.telematic.IReceivedMsgListener; +import com.mogo.eagle.core.function.call.autopilot.CallerAutoPilotControlManager; import com.mogo.eagle.core.function.call.telematic.CallerTelematicListenerManager; import com.mogo.eagle.core.function.call.telematic.CallerTelematicManager; import com.mogo.eagle.core.utilcode.mogo.logger.Logger; @@ -262,7 +263,7 @@ public class BusPassengerModel { } mNextStationIndex = 0; startOrStopCalculateRouteInfo(false); - + mRoutePoints.clear(); if (mRouteLineInfoCallback != null){ mRouteLineInfoCallback.showNoTaskView(); } @@ -473,6 +474,9 @@ public class BusPassengerModel { int state = autopilotStatusInfo.getState(); if (state == IMoGoAutopilotStatusListener.STATUS_AUTOPILOT_RUNNING) { //2022.7.20 自动驾驶更换成带档位的 + if(state != mPreAutoStatus && null != routesResult){ + CallerAutoPilotControlManager.INSTANCE.getGlobalPath(); + } if (mADASStatusCallback != null) mADASStatusCallback.onAutopilotRunning(); } else if (state == IMoGoAutopilotStatusListener.STATUS_AUTOPILOT_ENABLE) { if(state != mPreAutoStatus){ diff --git a/OCH/mogo-och-taxi-passenger/src/main/java/com/mogo/och/taxi/passenger/model/TaxiPassengerModel.java b/OCH/mogo-och-taxi-passenger/src/main/java/com/mogo/och/taxi/passenger/model/TaxiPassengerModel.java index daaf6b231c..fafbe54a2a 100644 --- a/OCH/mogo-och-taxi-passenger/src/main/java/com/mogo/och/taxi/passenger/model/TaxiPassengerModel.java +++ b/OCH/mogo-och-taxi-passenger/src/main/java/com/mogo/och/taxi/passenger/model/TaxiPassengerModel.java @@ -531,6 +531,8 @@ public class TaxiPassengerModel implements IOCHTaxiPassengerNaviChangedCallback // 当高频返回autopilot 2时,不重复调用订单状态变更 mPrevAPStatus = state; // 每个状态单独赋值,解决无订单时已经是2的状态导致的新订单来时无法进入此逻辑更新状态 startServicePilotDone(); + + CallerAutoPilotControlManager.INSTANCE.getGlobalPath(); } } else if (state == IMoGoAutopilotStatusListener.STATUS_AUTOPILOT_ENABLE) { mPrevAPStatus = state; From a8261e8ffba9794d7ab69ea3f47fd8d5195b063d Mon Sep 17 00:00:00 2001 From: zhongchao Date: Fri, 19 May 2023 14:45:31 +0800 Subject: [PATCH 2/6] [3.2.0] add safey policy of lineid within aiCloud roma --- .../core/function/business/ai/AiCloudIdentifyDataManager.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/function-impl/mogo-core-function-map/src/main/java/com/mogo/eagle/core/function/business/ai/AiCloudIdentifyDataManager.kt b/core/function-impl/mogo-core-function-map/src/main/java/com/mogo/eagle/core/function/business/ai/AiCloudIdentifyDataManager.kt index 992849ae5e..f01a19ef74 100644 --- a/core/function-impl/mogo-core-function-map/src/main/java/com/mogo/eagle/core/function/business/ai/AiCloudIdentifyDataManager.kt +++ b/core/function-impl/mogo-core-function-map/src/main/java/com/mogo/eagle/core/function/business/ai/AiCloudIdentifyDataManager.kt @@ -166,6 +166,8 @@ class AiCloudIdentifyDataManager : IMogoMapListener, super.onAutopilotRouteLineId(lineId) if (lineId == 0L) { updateRomaStyle(true) + }else{ + CallerAutoPilotControlManager.getGlobalPath() } } From 4e59a0b07cbc6d7e2bd4d0991d0a1624ba97a31f Mon Sep 17 00:00:00 2001 From: xinfengkun Date: Fri, 19 May 2023 14:57:39 +0800 Subject: [PATCH 3/6] =?UTF-8?q?[minibus320][adas]=20=E6=B7=BB=E5=8A=A0MAP?= =?UTF-8?q?=E7=89=88=E6=9C=AC=E5=B8=B8=E9=87=8F=EF=BC=8C=E9=B9=B0=E7=9C=BC?= =?UTF-8?q?=E4=B8=8B=E5=8F=91=E7=BA=A2=E7=BB=BF=E7=81=AF=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E5=88=B0=E5=B7=A5=E6=8E=A7=E6=9C=BA=E6=8E=A5=E5=8F=A3=E5=8A=A0?= =?UTF-8?q?=E5=85=A5=E7=89=88=E6=9C=AC=E5=88=A4=E6=96=ADMAP290=E5=B0=86=E5=81=9C=E6=AD=A2=E5=8F=91?= =?UTF-8?q?=E9=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../server/AsyncDataToAutopilotServer.kt | 5 ++++- libraries/mogo-adas/build.gradle | 4 ++++ .../com/zhidao/support/adas/high/AdasManager.java | 15 +++++++++++++++ 3 files changed, 23 insertions(+), 1 deletion(-) diff --git a/core/function-impl/mogo-core-function-datacenter/src/main/java/com/mogo/eagle/core/function/datacenter/autopilot/server/AsyncDataToAutopilotServer.kt b/core/function-impl/mogo-core-function-datacenter/src/main/java/com/mogo/eagle/core/function/datacenter/autopilot/server/AsyncDataToAutopilotServer.kt index b92dd55b4c..12a53090b3 100644 --- a/core/function-impl/mogo-core-function-datacenter/src/main/java/com/mogo/eagle/core/function/datacenter/autopilot/server/AsyncDataToAutopilotServer.kt +++ b/core/function-impl/mogo-core-function-datacenter/src/main/java/com/mogo/eagle/core/function/datacenter/autopilot/server/AsyncDataToAutopilotServer.kt @@ -4,6 +4,7 @@ import com.mogo.eagle.core.data.biz.trafficlight.TrafficLightResult import com.mogo.eagle.core.function.api.datacenter.union.IMoGoTrafficLightListener import com.mogo.eagle.core.function.call.autopilot.CallerAutoPilotControlManager import com.mogo.eagle.core.function.call.v2x.CallerTrafficLightListenerManager +import com.zhidao.support.adas.high.AdasManager /** * @author xiaoyuzhou @@ -26,6 +27,8 @@ class AsyncDataToAutopilotServer private constructor() : IMoGoTrafficLightListen } override fun onTrafficLightStatus(trafficLightResult: TrafficLightResult) { - CallerAutoPilotControlManager.sendTrafficLightData(trafficLightResult) + val version = AdasManager.getInstance().mapVersion + if (version > -1 && version < 290) + CallerAutoPilotControlManager.sendTrafficLightData(trafficLightResult) } } \ No newline at end of file diff --git a/libraries/mogo-adas/build.gradle b/libraries/mogo-adas/build.gradle index 5710f48d1e..76ddc296a8 100644 --- a/libraries/mogo-adas/build.gradle +++ b/libraries/mogo-adas/build.gradle @@ -66,6 +66,10 @@ android { abortOnError false } + compileOptions { + sourceCompatibility JavaVersion.VERSION_1_8 + targetCompatibility JavaVersion.VERSION_1_8 + } } diff --git a/libraries/mogo-adas/src/main/java/com/zhidao/support/adas/high/AdasManager.java b/libraries/mogo-adas/src/main/java/com/zhidao/support/adas/high/AdasManager.java index 8732af2ce3..adf028f7a9 100644 --- a/libraries/mogo-adas/src/main/java/com/zhidao/support/adas/high/AdasManager.java +++ b/libraries/mogo-adas/src/main/java/com/zhidao/support/adas/high/AdasManager.java @@ -42,6 +42,7 @@ public class AdasManager implements IAdasNetCommApi { */ private static final int PROTOCOL_VERSION = MessagePad.ProtocolVersion.CurrentVersion.getNumber(); private volatile MessagePad.CarConfigResp carConfig; + private int mapVersion = -1;//当前连接的MAP版本,断开连接会置为-1 private static final String ADAS_VERSION = BuildConfig.VERSION_NAME; private final Pattern pattern = Pattern.compile("\\d+\\.\\d+\\.\\d+"); @@ -64,6 +65,20 @@ public class AdasManager implements IAdasNetCommApi { public synchronized void setCarConfig(MessagePad.CarConfigResp carConfig) { this.carConfig = carConfig; + if (carConfig != null) { + mapVersion = parseVersion(carConfig.getDockVersion()); + } else { + mapVersion = -1; + } + } + + /** + * 当前连接的MAP版本,断开连接会置为-1 + * + * @return 版本 + */ + public int getMapVersion() { + return mapVersion; } /** From 54895a73efd57f4d878a9c0be1c125f3c339cb2d Mon Sep 17 00:00:00 2001 From: zhongchao Date: Fri, 19 May 2023 14:58:50 +0800 Subject: [PATCH 4/6] [3.2.0] add limit of track --- .../mogo/eagle/core/function/business/identify/TrackObj.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/function-impl/mogo-core-function-map/src/main/java/com/mogo/eagle/core/function/business/identify/TrackObj.java b/core/function-impl/mogo-core-function-map/src/main/java/com/mogo/eagle/core/function/business/identify/TrackObj.java index bd2fd9eecb..6da3576d2c 100644 --- a/core/function-impl/mogo-core-function-map/src/main/java/com/mogo/eagle/core/function/business/identify/TrackObj.java +++ b/core/function-impl/mogo-core-function-map/src/main/java/com/mogo/eagle/core/function/business/identify/TrackObj.java @@ -7,10 +7,12 @@ import static com.mogo.eagle.core.function.business.identify.TrackManager.LIMIT_ import android.annotation.SuppressLint; +import com.mogo.eagle.core.data.config.FunctionBuildConfig; import com.mogo.eagle.core.data.enums.TrafficTypeEnum; import com.mogo.eagle.core.function.call.autopilot.CallerAutoPilotStatusListenerManager; import com.mogo.eagle.core.utilcode.geometry.S2CellId; import com.mogo.eagle.core.utilcode.geometry.S2LatLng; +import com.mogo.eagle.core.utilcode.mogo.AppIdentityModeUtils; import com.mogo.eagle.core.utilcode.util.CoordinateUtils; import com.mogo.eagle.core.utilcode.util.ParseVersionUtils; import com.zhjt.service.chain.ChainLog; @@ -55,7 +57,7 @@ public class TrackObj { if (dockerVersion != null && !dockerVersion.isEmpty()) { try { int version = ParseVersionUtils.parseVersion(true, dockerVersion); - if (version >= 310) { + if (version >= 310 && AppIdentityModeUtils.isTaxi(FunctionBuildConfig.appIdentityMode)) { return; } } catch (Exception e) { From c460406cafc794df24fe22d21ea0701070d6e3d5 Mon Sep 17 00:00:00 2001 From: xuxinchao Date: Fri, 19 May 2023 15:03:44 +0800 Subject: [PATCH 5/6] =?UTF-8?q?[3.2.0]=E4=BA=91=E8=B0=83=E5=BA=A6=E5=8E=BB?= =?UTF-8?q?=E6=8E=89dpqp=E9=9D=9E=E7=A9=BA=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../biz/dispatch/DispatchAutoPilotManager.kt | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/core/function-impl/mogo-core-function-biz/src/main/java/com/mogo/eagle/function/biz/dispatch/DispatchAutoPilotManager.kt b/core/function-impl/mogo-core-function-biz/src/main/java/com/mogo/eagle/function/biz/dispatch/DispatchAutoPilotManager.kt index f19a08dcea..b8bc49e6b7 100644 --- a/core/function-impl/mogo-core-function-biz/src/main/java/com/mogo/eagle/function/biz/dispatch/DispatchAutoPilotManager.kt +++ b/core/function-impl/mogo-core-function-biz/src/main/java/com/mogo/eagle/function/biz/dispatch/DispatchAutoPilotManager.kt @@ -205,18 +205,6 @@ class DispatchAutoPilotManager private constructor() : ToastUtils.showShort("vehicleModel数据为空") return } - if(it.trajUrl_dpqp == null){ - ToastUtils.showShort("trajUrl_dpqp数据为空") - return - } - if(it.trajMd5_dpqp == null){ - ToastUtils.showShort("trajMd5_dpqp数据为空") - return - } - if(it.stopUrl_dpqp == null){ - ToastUtils.showShort("stopUrl_dpqp数据为空") - return - } if(it.lineName == null){ ToastUtils.showShort("lineName数据为空") return @@ -230,7 +218,7 @@ class DispatchAutoPilotManager private constructor() : return } val currentAutoPilotLine = AutopilotControlParameters.AutoPilotLine(it.lineId.toLong(),it.trajUrl,it.trajMd5, - it.stopUrl,it.stopMd5,it.timestamp,it.vehicleModel,it.trajUrl_dpqp,it.trajMd5_dpqp,it.stopUrl_dpqp, + it.stopUrl,it.stopMd5,it.timestamp,it.vehicleModel,it.trajUrl_dpqp+"",it.trajMd5_dpqp+"",it.stopUrl_dpqp+"", it.stopMd5_dpqp,it.timestamp_dpqp) currentAutopilot.autoPilotLine = currentAutoPilotLine currentAutopilot.routeID = it.lineId From da884659040c0561cddd92bd6861e81378480660 Mon Sep 17 00:00:00 2001 From: chenfufeng Date: Fri, 19 May 2023 15:54:59 +0800 Subject: [PATCH 6/6] =?UTF-8?q?[3.2.0][Fix]Catch=E6=8B=92=E7=BB=9D?= =?UTF-8?q?=E4=BB=BB=E5=8A=A1=E7=9A=84=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gradle.properties | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/gradle.properties b/gradle.properties index eb690d7c56..808ba62f5e 100644 --- a/gradle.properties +++ b/gradle.properties @@ -66,23 +66,23 @@ SERVICE_BIZ_VERSION=1.2.4 LOGLIB_VERSION=1.5.27 ######## MogoAiCloudSDK Version ######## # 网络请求LOGLIB_VERSION -MOGO_NETWORK_VERSION=1.4.7.3 +MOGO_NETWORK_VERSION=1.4.7.4 # 鉴权 -MOGO_PASSPORT_VERSION=1.4.7.3 +MOGO_PASSPORT_VERSION=1.4.7.4 # 常链接 -MOGO_SOCKET_VERSION=1.4.7.3 +MOGO_SOCKET_VERSION=1.4.7.4 # 数据采集 -MOGO_REALTIME_VERSION=1.4.7.3 +MOGO_REALTIME_VERSION=1.4.7.4 # 探路,道路事件发布,获取 -MOGO_TANLU_VERSION=1.4.7.3 +MOGO_TANLU_VERSION=1.4.7.4 # 直播推流 -MOGO_LIVE_VERSION=1.4.7.3 +MOGO_LIVE_VERSION=1.4.7.4 # 直播拉流 -MOGO_TRAFFICLIVE_VERSION=1.4.7.3 +MOGO_TRAFFICLIVE_VERSION=1.4.7.4 # 定位服务 -MOGO_LOCATION_VERSION=1.4.7.3 +MOGO_LOCATION_VERSION=1.4.7.4 # 远程通讯模块 -MOGO_TELEMATIC_VERSION=1.4.7.3 +MOGO_TELEMATIC_VERSION=1.4.7.4 ######## MogoAiCloudSDK Version ######## # 自研地图 MAP_SDK_VERSION=2.12.1.1