[2.13.0-arch-opt] merg
This commit is contained in:
@@ -68,6 +68,7 @@
|
|||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginTop="@dimen/hmi_traffic_light_layout_margin_top"
|
android:layout_marginTop="@dimen/hmi_traffic_light_layout_margin_top"
|
||||||
android:layout_marginEnd="@dimen/hmi_traffic_light_layout_margin_right"
|
android:layout_marginEnd="@dimen/hmi_traffic_light_layout_margin_right"
|
||||||
|
android:visibility="gone"
|
||||||
app:layout_constraintRight_toRightOf="parent"
|
app:layout_constraintRight_toRightOf="parent"
|
||||||
app:layout_constraintTop_toTopOf="parent" />
|
app:layout_constraintTop_toTopOf="parent" />
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,10 @@
|
|||||||
apply plugin: 'com.android.library'
|
plugins {
|
||||||
apply plugin: 'com.alibaba.arouter'
|
id 'com.android.library'
|
||||||
|
id 'kotlin-android'
|
||||||
|
id 'kotlin-android-extensions'
|
||||||
|
id 'kotlin-kapt'
|
||||||
|
id 'com.alibaba.arouter'
|
||||||
|
}
|
||||||
|
|
||||||
android {
|
android {
|
||||||
compileSdkVersion rootProject.ext.android.compileSdkVersion
|
compileSdkVersion rootProject.ext.android.compileSdkVersion
|
||||||
@@ -13,10 +18,11 @@ android {
|
|||||||
|
|
||||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||||
consumerProguardFiles "consumer-rules.pro"
|
consumerProguardFiles "consumer-rules.pro"
|
||||||
|
//ARouter apt 参数
|
||||||
javaCompileOptions {
|
kapt {
|
||||||
annotationProcessorOptions {
|
useBuildCache = false
|
||||||
arguments = [AROUTER_MODULE_NAME: project.getName()]
|
arguments {
|
||||||
|
arg("AROUTER_MODULE_NAME", project.getName())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -43,6 +49,7 @@ dependencies {
|
|||||||
|
|
||||||
implementation rootProject.ext.dependencies.arouter
|
implementation rootProject.ext.dependencies.arouter
|
||||||
annotationProcessor rootProject.ext.dependencies.aroutercompiler
|
annotationProcessor rootProject.ext.dependencies.aroutercompiler
|
||||||
|
kapt rootProject.ext.dependencies.aroutercompiler
|
||||||
|
|
||||||
if (Boolean.valueOf(USE_MAVEN_PACKAGE)) {
|
if (Boolean.valueOf(USE_MAVEN_PACKAGE)) {
|
||||||
implementation rootProject.ext.dependencies.mogoutils
|
implementation rootProject.ext.dependencies.mogoutils
|
||||||
|
|||||||
@@ -12,5 +12,5 @@ class OCHConstants {
|
|||||||
/**
|
/**
|
||||||
* arouter 路由地址
|
* arouter 路由地址
|
||||||
*/
|
*/
|
||||||
public static final String PATH = "/och/noop/api";
|
public static final String PATH = "/noop/api";
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ package com.mogo.och.noop
|
|||||||
import android.view.View
|
import android.view.View
|
||||||
import com.mogo.commons.mvp.MvpFragment
|
import com.mogo.commons.mvp.MvpFragment
|
||||||
import com.mogo.eagle.core.function.hmi.ui.setting.ToggleDebugView
|
import com.mogo.eagle.core.function.hmi.ui.setting.ToggleDebugView
|
||||||
import kotlinx.android.synthetic.main.fragment_hmi.*
|
import kotlinx.android.synthetic.main.och_noop_fragment_hmi.*
|
||||||
|
|
||||||
class OchNoopFragment : MvpFragment<OchNoopContract.View?, OchNoopPresenter?>(),
|
class OchNoopFragment : MvpFragment<OchNoopContract.View?, OchNoopPresenter?>(),
|
||||||
OchNoopContract.View {
|
OchNoopContract.View {
|
||||||
@@ -25,7 +25,6 @@ class OchNoopFragment : MvpFragment<OchNoopContract.View?, OchNoopPresenter?>(),
|
|||||||
}
|
}
|
||||||
|
|
||||||
override fun initViews() {
|
override fun initViews() {
|
||||||
|
|
||||||
viewShowDebugView.setOnLongClickListener {
|
viewShowDebugView.setOnLongClickListener {
|
||||||
ToggleDebugView.toggleDebugView.toggle(requireContext())
|
ToggleDebugView.toggleDebugView.toggle(requireContext())
|
||||||
true
|
true
|
||||||
|
|||||||
@@ -67,8 +67,7 @@
|
|||||||
android:layout_marginTop="@dimen/module_mogo_autopilot_status_margin_top"
|
android:layout_marginTop="@dimen/module_mogo_autopilot_status_margin_top"
|
||||||
android:elevation="@dimen/dp_10"
|
android:elevation="@dimen/dp_10"
|
||||||
app:layout_constraintLeft_toLeftOf="@+id/viewSpeedChart"
|
app:layout_constraintLeft_toLeftOf="@+id/viewSpeedChart"
|
||||||
app:layout_constraintTop_toBottomOf="@+id/viewSpeedChart"
|
app:layout_constraintTop_toBottomOf="@+id/viewSpeedChart"/>
|
||||||
app:layout_goneMarginStart="@dimen/module_mogo_autopilot_status_margin_left" />
|
|
||||||
|
|
||||||
<!--超视距-->
|
<!--超视距-->
|
||||||
<com.mogo.eagle.core.function.hmi.ui.widget.CameraView
|
<com.mogo.eagle.core.function.hmi.ui.widget.CameraView
|
||||||
@@ -86,6 +85,7 @@
|
|||||||
android:id="@+id/viewTrafficLightVr"
|
android:id="@+id/viewTrafficLightVr"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
android:visibility="gone"
|
||||||
android:layout_marginTop="@dimen/hmi_traffic_light_layout_margin_top"
|
android:layout_marginTop="@dimen/hmi_traffic_light_layout_margin_top"
|
||||||
android:layout_marginEnd="@dimen/hmi_traffic_light_layout_margin_right"
|
android:layout_marginEnd="@dimen/hmi_traffic_light_layout_margin_right"
|
||||||
app:layout_constraintRight_toRightOf="parent"
|
app:layout_constraintRight_toRightOf="parent"
|
||||||
@@ -164,18 +164,14 @@
|
|||||||
android:layout_height="120dp"
|
android:layout_height="120dp"
|
||||||
android:layout_marginTop="30dp"
|
android:layout_marginTop="30dp"
|
||||||
android:layout_marginEnd="40dp"
|
android:layout_marginEnd="40dp"
|
||||||
android:background="@drawable/bg_waring_limiting_velocity"
|
|
||||||
android:elevation="@dimen/dp_10"
|
android:elevation="@dimen/dp_10"
|
||||||
android:gravity="center"
|
android:gravity="center"
|
||||||
android:text="60"
|
android:text="60"
|
||||||
android:textColor="#FFFFFF"
|
android:textColor="#FFFFFF"
|
||||||
android:textSize="60dp"
|
android:textSize="60dp"
|
||||||
android:visibility="gone"
|
android:visibility="gone"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintRight_toRightOf="parent"
|
||||||
app:layout_constraintTop_toBottomOf="@+id/ivCameraIcon"
|
app:layout_constraintTop_toBottomOf="@+id/ivCameraIcon" />
|
||||||
app:layout_goneMarginEnd="40dp"
|
|
||||||
app:layout_goneMarginTop="40dp"
|
|
||||||
tools:visibility="gone" />
|
|
||||||
|
|
||||||
<!--消息盒子司机端选择入口-->
|
<!--消息盒子司机端选择入口-->
|
||||||
<CheckBox
|
<CheckBox
|
||||||
|
|||||||
@@ -126,6 +126,7 @@
|
|||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginTop="@dimen/hmi_traffic_light_layout_margin_top"
|
android:layout_marginTop="@dimen/hmi_traffic_light_layout_margin_top"
|
||||||
android:layout_marginEnd="@dimen/hmi_traffic_light_layout_margin_right"
|
android:layout_marginEnd="@dimen/hmi_traffic_light_layout_margin_right"
|
||||||
|
android:visibility="gone"
|
||||||
app:layout_constraintRight_toRightOf="parent"
|
app:layout_constraintRight_toRightOf="parent"
|
||||||
app:layout_constraintTop_toTopOf="parent" />
|
app:layout_constraintTop_toTopOf="parent" />
|
||||||
|
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ project.android.productFlavors {
|
|||||||
buildConfigField 'int', 'GPS_PROVIDER', "1"
|
buildConfigField 'int', 'GPS_PROVIDER', "1"
|
||||||
|
|
||||||
// 构建的应用身份类型,具体查看 README.md APP_IDENTITY_MODE规则
|
// 构建的应用身份类型,具体查看 README.md APP_IDENTITY_MODE规则
|
||||||
buildConfigField 'String', 'APP_IDENTITY_MODE', "\"Taxi_Driver_Base\""
|
buildConfigField 'String', 'APP_IDENTITY_MODE', "\"FPad_Noop_Base\""
|
||||||
// 连接的工控机IP地址
|
// 连接的工控机IP地址
|
||||||
buildConfigField 'String', 'ADAS_CONNECT_IP', "\"192.168.1.104\""
|
buildConfigField 'String', 'ADAS_CONNECT_IP', "\"192.168.1.104\""
|
||||||
// 构建的是否是演示(美化)模式
|
// 构建的是否是演示(美化)模式
|
||||||
|
|||||||
@@ -10,7 +10,6 @@ import com.mogo.eagle.function.biz.dispatch.DispatchAutoPilotManager.Companion.d
|
|||||||
import com.mogo.eagle.function.biz.monitoring.CronTaskManager.Companion.cronTaskManager
|
import com.mogo.eagle.function.biz.monitoring.CronTaskManager.Companion.cronTaskManager
|
||||||
import com.mogo.eagle.function.biz.notice.NoticeSocketManager.Companion.noticeSocketManager
|
import com.mogo.eagle.function.biz.notice.NoticeSocketManager.Companion.noticeSocketManager
|
||||||
import com.mogo.eagle.function.biz.notice.network.NoticeNetWorkManager
|
import com.mogo.eagle.function.biz.notice.network.NoticeNetWorkManager
|
||||||
import com.mogo.eagle.function.biz.v2x.speedlimit.SpeedLimitDataManager
|
|
||||||
import com.mogo.eagle.function.biz.v2x.speedlimit.SpeedLimitDispatcher
|
import com.mogo.eagle.function.biz.v2x.speedlimit.SpeedLimitDispatcher
|
||||||
import com.mogo.eagle.function.biz.v2x.trafficlight.core.MogoTrafficLightManager
|
import com.mogo.eagle.function.biz.v2x.trafficlight.core.MogoTrafficLightManager
|
||||||
import com.mogo.eagle.function.biz.v2x.trafficlight.core.TrafficLightDispatcher
|
import com.mogo.eagle.function.biz.v2x.trafficlight.core.TrafficLightDispatcher
|
||||||
@@ -28,10 +27,9 @@ class FuncBizProvider : IMoGoFuncBizProvider {
|
|||||||
cronTaskManager.startCronTask()
|
cronTaskManager.startCronTask()
|
||||||
|
|
||||||
MogoTrafficLightManager.INSTANCE.initServer(context)
|
MogoTrafficLightManager.INSTANCE.initServer(context)
|
||||||
TrafficLightDispatcher.INSTANCE.initServer(context) //todo 红绿灯中心模块放入dataCenter
|
|
||||||
VipCarManager.INSTANCE.initServer(context)
|
VipCarManager.INSTANCE.initServer(context)
|
||||||
SpeedLimitDataManager.getInstance().start()
|
TrafficLightDispatcher.INSTANCE.initServer(context) //todo 宏宇 放入dataCenter
|
||||||
SpeedLimitDispatcher.INSTANCE.initLimit(context)
|
SpeedLimitDispatcher.INSTANCE.initLimit(context) //todo 宏宇,放入dataCenter
|
||||||
// RedLightWarningManager.INSTANCE.listenTrafficLight()
|
// RedLightWarningManager.INSTANCE.listenTrafficLight()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ class SpeedLimitDispatcher : ILimitingVelocityListener {
|
|||||||
/**
|
/**
|
||||||
* 地图限速数据
|
* 地图限速数据
|
||||||
*/
|
*/
|
||||||
@BizConfig(FuncBizConfig.V2I, "", FuncBizConfig.BIZ_SLW)
|
// @BizConfig(FuncBizConfig.V2I, "", FuncBizConfig.BIZ_SLW) //todo arrow 重新考虑放的位置
|
||||||
override fun onLimitingVelocityChange(limitingVelocity: Int, sourceType: DataSourceType) {
|
override fun onLimitingVelocityChange(limitingVelocity: Int, sourceType: DataSourceType) {
|
||||||
when (sourceType) { // obu 优先级高于 map,体现链路能力
|
when (sourceType) { // obu 优先级高于 map,体现链路能力
|
||||||
DataSourceType.OBU -> {
|
DataSourceType.OBU -> {
|
||||||
|
|||||||
@@ -108,7 +108,6 @@ dependencies {
|
|||||||
api project(':core:function-impl:mogo-core-function-chat')
|
api project(':core:function-impl:mogo-core-function-chat')
|
||||||
api project(':core:function-impl:mogo-core-function-datacenter')
|
api project(':core:function-impl:mogo-core-function-datacenter')
|
||||||
api project(':core:function-impl:mogo-core-function-biz')
|
api project(':core:function-impl:mogo-core-function-biz')
|
||||||
|
|
||||||
api project(':core:mogo-core-function-call')
|
api project(':core:mogo-core-function-call')
|
||||||
api project(':libraries:mogo-adas')
|
api project(':libraries:mogo-adas')
|
||||||
api project(':libraries:map-usbcamera')
|
api project(':libraries:map-usbcamera')
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ import android.content.BroadcastReceiver
|
|||||||
import android.content.Context
|
import android.content.Context
|
||||||
import android.content.Intent
|
import android.content.Intent
|
||||||
import android.util.Log
|
import android.util.Log
|
||||||
|
import com.mogo.eagle.core.data.enums.DataSourceType
|
||||||
import com.mogo.eagle.core.data.enums.EventTypeEnumNew
|
import com.mogo.eagle.core.data.enums.EventTypeEnumNew
|
||||||
import com.mogo.eagle.core.function.call.hmi.CallerHmiManager
|
import com.mogo.eagle.core.function.call.hmi.CallerHmiManager
|
||||||
import com.mogo.eagle.core.function.hmi.WaringConst
|
import com.mogo.eagle.core.function.hmi.WaringConst
|
||||||
@@ -13,6 +14,7 @@ import com.mogo.eagle.core.data.msgbox.MsgBoxBean
|
|||||||
import com.mogo.eagle.core.data.msgbox.MsgBoxType
|
import com.mogo.eagle.core.data.msgbox.MsgBoxType
|
||||||
import com.mogo.eagle.core.data.msgbox.V2XMsg
|
import com.mogo.eagle.core.data.msgbox.V2XMsg
|
||||||
import com.mogo.eagle.core.function.call.msgbox.CallerMsgBoxManager
|
import com.mogo.eagle.core.function.call.msgbox.CallerMsgBoxManager
|
||||||
|
import com.mogo.eagle.core.function.call.v2x.CallerViewLimitingVelocityListenerManager
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* V2X 预警广播接收。用于跨应用,跨进程,内部也可以通过这种方式弹出预警提示框
|
* V2X 预警广播接收。用于跨应用,跨进程,内部也可以通过这种方式弹出预警提示框
|
||||||
@@ -76,7 +78,7 @@ class V2XWarningBroadcastReceiver : BroadcastReceiver() {
|
|||||||
tag: String?
|
tag: String?
|
||||||
) {
|
) {
|
||||||
if (EventTypeEnumNew.TYPE_USECASE_ID_IVP_RED.poiType == v2xType.toString()) {
|
if (EventTypeEnumNew.TYPE_USECASE_ID_IVP_RED.poiType == v2xType.toString()) {
|
||||||
CallerHmiManager.showLimitingVelocity(1, 1)
|
CallerViewLimitingVelocityListenerManager.invokeOnLimitingVelocityChange(1,DataSourceType.MAP)
|
||||||
}
|
}
|
||||||
if (alertContent.isNullOrEmpty() || ttsContent.isNullOrEmpty()) {
|
if (alertContent.isNullOrEmpty() || ttsContent.isNullOrEmpty()) {
|
||||||
Log.d("MsgBox-V2XWarningBR", "alertContent或ttsContent为空!")
|
Log.d("MsgBox-V2XWarningBR", "alertContent或ttsContent为空!")
|
||||||
|
|||||||
@@ -10,9 +10,9 @@ class ToolsImageView(context: Context, attrs: AttributeSet?) :
|
|||||||
|
|
||||||
override fun onAttachedToWindow() {
|
override fun onAttachedToWindow() {
|
||||||
super.onAttachedToWindow()
|
super.onAttachedToWindow()
|
||||||
|
scaleType = ScaleType.CENTER
|
||||||
setBackgroundResource(R.drawable.module_ext_check)
|
setBackgroundResource(R.drawable.module_ext_check)
|
||||||
setImageResource(R.drawable.icon_tools_nor)
|
setImageResource(R.drawable.icon_tools_nor)
|
||||||
scaleType = ScaleType.CENTER
|
|
||||||
setOnClickListener{
|
setOnClickListener{
|
||||||
toolsView.showToolsFloat(context)
|
toolsView.showToolsFloat(context)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -38,18 +38,13 @@ class AutoPilotStatusView constructor(
|
|||||||
|
|
||||||
private var mAutopilotStatus: Int = 0
|
private var mAutopilotStatus: Int = 0
|
||||||
|
|
||||||
override fun onAttachedToWindow() {
|
init{
|
||||||
super.onAttachedToWindow()
|
|
||||||
initView(context)
|
initView(context)
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun initView(context: Context) {
|
private fun initView(context: Context) {
|
||||||
setBackgroundResource(R.drawable.module_hmi_autopilot_status_bg)
|
setBackgroundResource(R.drawable.module_hmi_autopilot_status_bg)
|
||||||
LayoutInflater.from(context).inflate(R.layout.view_autopilot_status, this, true)
|
LayoutInflater.from(context).inflate(R.layout.view_autopilot_status, this, true)
|
||||||
|
|
||||||
val lp = LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT)
|
|
||||||
layoutParams = lp
|
|
||||||
|
|
||||||
// 设置点击监听
|
// 设置点击监听
|
||||||
setOnClickListener(this)
|
setOnClickListener(this)
|
||||||
// 自动驾驶状态监听
|
// 自动驾驶状态监听
|
||||||
|
|||||||
@@ -149,10 +149,14 @@ public class MainLauncherActivity extends MainActivity implements IMogoIntentLis
|
|||||||
ochProvider = (IMoGoFunctionProvider) ARouter.getInstance()
|
ochProvider = (IMoGoFunctionProvider) ARouter.getInstance()
|
||||||
.build("/driver/api")
|
.build("/driver/api")
|
||||||
.navigation(getContext());
|
.navigation(getContext());
|
||||||
} else {
|
} else if(AppIdentityModeUtils.isPassenger(FunctionBuildConfig.appIdentityMode)){
|
||||||
ochProvider = (IMoGoFunctionProvider) ARouter.getInstance()
|
ochProvider = (IMoGoFunctionProvider) ARouter.getInstance()
|
||||||
.build("/passenger/api")
|
.build("/passenger/api")
|
||||||
.navigation(getContext());
|
.navigation(getContext());
|
||||||
|
} else {
|
||||||
|
ochProvider = (IMoGoFunctionProvider) ARouter.getInstance()
|
||||||
|
.build("/noop/api")
|
||||||
|
.navigation(getContext());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// 处理一个机器多个屏幕方案
|
// 处理一个机器多个屏幕方案
|
||||||
|
|||||||
@@ -14,9 +14,7 @@
|
|||||||
android:gravity="center"
|
android:gravity="center"
|
||||||
android:text="60"
|
android:text="60"
|
||||||
android:textColor="#FFFFFF"
|
android:textColor="#FFFFFF"
|
||||||
android:textSize="@dimen/dp_60"
|
android:textSize="@dimen/dp_60"/>
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
|
||||||
app:layout_constraintTop_toBottomOf="@+id/ivCameraIcon" />
|
|
||||||
|
|
||||||
<!--限速来源-->
|
<!--限速来源-->
|
||||||
<TextView
|
<TextView
|
||||||
@@ -29,8 +27,6 @@
|
|||||||
android:textColor="@color/color_FFFFFF"
|
android:textColor="@color/color_FFFFFF"
|
||||||
android:textSize="@dimen/dp_30"
|
android:textSize="@dimen/dp_30"
|
||||||
android:textStyle="bold"
|
android:textStyle="bold"
|
||||||
android:visibility="gone"
|
android:visibility="gone" />
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
|
||||||
app:layout_constraintTop_toBottomOf="@+id/tvLimitingVelocity" />
|
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
@@ -1,17 +1,15 @@
|
|||||||
package com.mogo.eagle.function.biz.v2x.speedlimit;
|
package com.mogo.eagle.core.function.business;
|
||||||
|
|
||||||
import static com.mogo.eagle.core.data.deva.bizconfig.FuncBizConfig.BIZ_SLW;
|
|
||||||
import static com.mogo.eagle.core.data.deva.bizconfig.FuncBizConfig.V2I;
|
|
||||||
|
|
||||||
import androidx.annotation.Nullable;
|
import androidx.annotation.Nullable;
|
||||||
|
|
||||||
|
import com.mogo.eagle.core.data.enums.DataSourceType;
|
||||||
import com.mogo.eagle.core.function.api.autopilot.IMoGoChassisLocationGCJ02Listener;
|
import com.mogo.eagle.core.function.api.autopilot.IMoGoChassisLocationGCJ02Listener;
|
||||||
import com.mogo.eagle.core.function.call.autopilot.CallerChassisLocationGCJ20ListenerManager;
|
import com.mogo.eagle.core.function.call.autopilot.CallerChassisLocationGCJ20ListenerManager;
|
||||||
import com.mogo.eagle.core.function.call.map.CallerMapUIServiceManager;
|
import com.mogo.eagle.core.function.call.map.CallerMapUIServiceManager;
|
||||||
import com.mogo.eagle.core.function.call.v2x.CallerLimitingVelocityListenerManager;
|
import com.mogo.eagle.core.function.call.v2x.CallerLimitingVelocityListenerManager;
|
||||||
import com.mogo.eagle.core.utilcode.util.UiThreadHandler;
|
import com.mogo.eagle.core.utilcode.util.UiThreadHandler;
|
||||||
import com.zhjt.service_biz.BizConfig;
|
|
||||||
|
|
||||||
|
import java.util.Objects;
|
||||||
import java.util.Timer;
|
import java.util.Timer;
|
||||||
import java.util.TimerTask;
|
import java.util.TimerTask;
|
||||||
|
|
||||||
@@ -25,8 +23,8 @@ import mogo.telematics.pad.MessagePad;
|
|||||||
public class SpeedLimitDataManager implements IMoGoChassisLocationGCJ02Listener {
|
public class SpeedLimitDataManager implements IMoGoChassisLocationGCJ02Listener {
|
||||||
|
|
||||||
private final static String TAG = "SpeedLimitDataManager";
|
private final static String TAG = "SpeedLimitDataManager";
|
||||||
private static SpeedLimitDataManager instance;
|
private static volatile SpeedLimitDataManager instance;
|
||||||
private MessagePad.GnssInfo mLocation;
|
private MessagePad.GnssInfo mLocation;
|
||||||
|
|
||||||
private SpeedLimitDataManager() {
|
private SpeedLimitDataManager() {
|
||||||
}
|
}
|
||||||
@@ -51,24 +49,19 @@ public class SpeedLimitDataManager implements IMoGoChassisLocationGCJ02Listener
|
|||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
if (mLocation != null) {
|
if (mLocation != null) {
|
||||||
if(CallerMapUIServiceManager.INSTANCE.getMapUIController()!=null){
|
if (CallerMapUIServiceManager.INSTANCE.getMapUIController() != null) {
|
||||||
getSpeedLimit();
|
getSpeedLimit();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@BizConfig(biz = V2I, dependentBizNode = "", bizNode = BIZ_SLW)
|
|
||||||
private void getSpeedLimit() {
|
private void getSpeedLimit() {
|
||||||
// if (!isShowObuLimitSpeedView) {
|
int speedLimit = Objects.requireNonNull(CallerMapUIServiceManager.INSTANCE.getMapUIController()).getLimitSpeed(mLocation.getLongitude(), mLocation.getLatitude(), (float) mLocation.getHeading());
|
||||||
int speedLimit = CallerMapUIServiceManager.INSTANCE.getMapUIController().getLimitSpeed(mLocation.getLongitude(), mLocation.getLatitude(), (float) mLocation.getHeading());
|
UiThreadHandler.post(() -> {
|
||||||
UiThreadHandler.post(() -> {
|
if (speedLimit > 0) {
|
||||||
if (speedLimit > 0) {
|
CallerLimitingVelocityListenerManager.INSTANCE.invokeOnLimitingVelocityChange(speedLimit, DataSourceType.MAP);
|
||||||
// CallerHmiManager.INSTANCE.showLimitingVelocity(speedLimit, 1);
|
}
|
||||||
CallerLimitingVelocityListenerManager.INSTANCE.invokeOnLimitingVelocityChange(speedLimit);
|
});
|
||||||
|
|
||||||
}
|
|
||||||
});
|
|
||||||
// }
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -15,6 +15,7 @@ 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.map.hd.IMoGoMapFragmentProvider
|
||||||
import com.mogo.eagle.core.function.api.setting.IMoGoSkinModeChangeListener
|
import com.mogo.eagle.core.function.api.setting.IMoGoSkinModeChangeListener
|
||||||
import com.mogo.eagle.core.function.business.MapPointCloudSubscriber
|
import com.mogo.eagle.core.function.business.MapPointCloudSubscriber
|
||||||
|
import com.mogo.eagle.core.function.business.SpeedLimitDataManager
|
||||||
import com.mogo.eagle.core.function.business.identify.MapIdentifySubscriber
|
import com.mogo.eagle.core.function.business.identify.MapIdentifySubscriber
|
||||||
import com.mogo.eagle.core.function.business.routeoverlay.MogoRouteOverlayManager
|
import com.mogo.eagle.core.function.business.routeoverlay.MogoRouteOverlayManager
|
||||||
import com.mogo.eagle.core.function.call.autopilot.CallerChassisLocationWGS84ListenerManager
|
import com.mogo.eagle.core.function.call.autopilot.CallerChassisLocationWGS84ListenerManager
|
||||||
@@ -199,6 +200,8 @@ class MapFragment : MvpFragment<MapView?, MapPresenter?>(),
|
|||||||
MapIdentifySubscriber.instance
|
MapIdentifySubscriber.instance
|
||||||
MogoRouteOverlayManager.getInstance().init()
|
MogoRouteOverlayManager.getInstance().init()
|
||||||
MapPointCloudSubscriber.instance
|
MapPointCloudSubscriber.instance
|
||||||
|
SpeedLimitDataManager.getInstance().start()
|
||||||
|
|
||||||
// TODO GD地图业务需要与高精地图业务拆开 --- 扶风
|
// TODO GD地图业务需要与高精地图业务拆开 --- 扶风
|
||||||
queryInfStructure()
|
queryInfStructure()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user