[6.3.0][Feat]司机屏天气效果开关状态同步给乘客屏
This commit is contained in:
@@ -18,6 +18,7 @@ import com.mogo.eagle.core.function.call.autopilot.CallerAutoPilotControlManager
|
||||
import com.mogo.eagle.core.function.call.autopilot.CallerAutoPilotControlManager.setIgnoreConditionDraw
|
||||
import com.mogo.eagle.core.function.call.cloud.CallerCloudListenerManager
|
||||
import com.mogo.eagle.core.function.call.devatools.CallerDevaToolsManager
|
||||
import com.mogo.eagle.core.function.call.map.CallerMapUIServiceManager
|
||||
import com.mogo.eagle.core.function.call.telematic.CallerTelematicListenerManager
|
||||
import com.mogo.eagle.core.function.call.v2x.CallerTrafficLightListenerManager
|
||||
import com.mogo.eagle.core.utilcode.mogo.logger.CallerLogger
|
||||
@@ -216,6 +217,12 @@ class TeleMsgHandler : IMsgHandler {
|
||||
}
|
||||
}
|
||||
|
||||
TelematicConstant.WEATHER_SWITCH_STATUS -> {
|
||||
ThreadUtils.runOnUiThread {
|
||||
CallerMapUIServiceManager.getMapUIController()?.setWeatherEnable(String(it.body) == "1")
|
||||
}
|
||||
}
|
||||
|
||||
TelematicConstant.OBU_GREENWAVE_WARNING -> {
|
||||
when (String(it.body)) {
|
||||
"0" -> {
|
||||
|
||||
@@ -764,7 +764,9 @@ internal class SOPSettingView @JvmOverloads constructor(
|
||||
it.layoutParams = params
|
||||
it.setOnCheckedChangeListener { _, isChecked ->
|
||||
CallerMapUIServiceManager.getMapUIController()?.setWeatherEnable(isChecked)
|
||||
CallerTelematicManager.sendMsgToAllClients(TelematicConstant.WEATHER_SWITCH_STATUS, (if (isChecked) "1" else "0").toByteArray())
|
||||
}
|
||||
CallerMapUIServiceManager.getMapUIController()?.setWeatherEnable(true)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -12,6 +12,7 @@ class TelematicConstant {
|
||||
const val HIDE_TRAFFIC_LIGHT = 102
|
||||
const val CONTROL_PASSENGER_DRIVER_MONITOR = 105
|
||||
const val V2N_AI_ROAD_DATA_TO_PASSENGER = 106 // V2N老链路云端下发给司机屏的数据,转发给乘客端
|
||||
const val WEATHER_SWITCH_STATUS = 107 // 司机屏的天气效果开关发给乘客端
|
||||
|
||||
const val OBU_RUNREDLIGHT_WARNING = 200 //闯红灯预警开关
|
||||
const val OBU_GREENWAVE_WARNING = 201 //绿波通行开关
|
||||
|
||||
Reference in New Issue
Block a user