[6.5.1_exam]合并Taxi考试到主分支
This commit is contained in:
@@ -382,6 +382,56 @@ object CallerAutoPilotControlManager {
|
||||
return providerApi?.sendDetouringSpeed(speed)
|
||||
}
|
||||
|
||||
/**
|
||||
* AEB开关
|
||||
* isEnable = true 开启
|
||||
* isEnable = false 关闭
|
||||
* @return boolean
|
||||
*/
|
||||
fun sendAebCmd(isEnable: Boolean): Boolean?{
|
||||
return providerApi?.sendAebCmd(isEnable)
|
||||
}
|
||||
|
||||
/**
|
||||
* 限制绕障开关
|
||||
* isEnable = true 限制绕障
|
||||
* isEnable = false 正常绕障
|
||||
* @return boolean
|
||||
*/
|
||||
fun sendLaneChangeRestrainValid(isEnable: Boolean): Boolean?{
|
||||
return providerApi?.sendLaneChangeRestrainValid(isEnable)
|
||||
}
|
||||
|
||||
/**
|
||||
* 停车让行线前避让等待开关
|
||||
* isEnable = true 停车让行线前需要避让等待
|
||||
* isEnable = false 停车让行线前无需避让等待
|
||||
* @return boolean
|
||||
*/
|
||||
fun sendStopYieldValid(isEnable: Boolean): Boolean?{
|
||||
return providerApi?.sendStopYieldValid(isEnable)
|
||||
}
|
||||
|
||||
/**
|
||||
* 地图限速功能开关
|
||||
* isEnable = true 使用地图限速功能
|
||||
* isEnable = false 不使用地图限速功能
|
||||
* @return boolean
|
||||
*/
|
||||
fun sendHadmapSpeedLimitValid(isEnable: Boolean): Boolean?{
|
||||
return providerApi?.sendHadmapSpeedLimitValid(isEnable)
|
||||
}
|
||||
|
||||
/**
|
||||
* 环岛模式开关
|
||||
* isEnable = true 环岛模式
|
||||
* isEnable = false 普通模式
|
||||
* @return boolean
|
||||
*/
|
||||
fun sendRampThetaValid(isEnable: Boolean): Boolean?{
|
||||
return providerApi?.sendRampThetaValid(isEnable)
|
||||
}
|
||||
|
||||
/**
|
||||
* 弱网减速停车策略开关
|
||||
* isEnable = true 使用弱网减速停车策略
|
||||
@@ -846,6 +896,10 @@ object CallerAutoPilotControlManager {
|
||||
return providerApi?.sendPlanningLineChangeCmd(cmd) ?: false
|
||||
}
|
||||
|
||||
fun sendPlanningPullOverCmd(pullOverCmd: Int): Boolean{
|
||||
return providerApi?.sendPlanningPullOverCmd(pullOverCmd)?: false
|
||||
}
|
||||
|
||||
/**
|
||||
* 设置座椅压力接口
|
||||
* @param driver 主驾是否有人
|
||||
|
||||
@@ -13,6 +13,7 @@ import com.mogo.eagle.core.data.deva.report.WorkOrderReportInfo
|
||||
import com.mogo.eagle.core.data.deva.scene.SceneModule
|
||||
import com.mogo.eagle.core.data.deva.scene.SceneTAG
|
||||
import com.mogo.eagle.core.data.msgbox.MsgBoxBean
|
||||
import com.mogo.eagle.core.data.takeover.TakeOverAnnotation
|
||||
import com.mogo.eagle.core.function.api.devatools.IDevaToolsProvider
|
||||
import com.mogo.eagle.core.function.api.devatools.block.*
|
||||
import com.mogo.eagle.core.function.api.devatools.download.*
|
||||
@@ -400,4 +401,11 @@ object CallerDevaToolsManager {
|
||||
fun setRouteDynamicColorEnable(enable: Boolean) {
|
||||
devaToolsProviderApi?.setRouteDynamicColorEnable(enable)
|
||||
}
|
||||
|
||||
/**
|
||||
* 接管
|
||||
*/
|
||||
fun takeOver(@TakeOverAnnotation takeOverAnnotation: Int) {
|
||||
devaToolsProviderApi?.takeOver(takeOverAnnotation)
|
||||
}
|
||||
}
|
||||
@@ -1,19 +1,18 @@
|
||||
package com.mogo.eagle.core.function.call.setting
|
||||
|
||||
import com.mogo.eagle.core.function.api.setting.ISeatPressureEventListener
|
||||
import com.mogo.eagle.core.function.api.setting.ITakeOverEventListener
|
||||
import com.mogo.eagle.core.function.call.base.CallerBase
|
||||
import java.util.concurrent.ConcurrentHashMap
|
||||
|
||||
/**
|
||||
* 座椅压力事件监听管理
|
||||
* 接管请求事件监听管理
|
||||
*/
|
||||
object CallerSeatPressureManager: CallerBase<ISeatPressureEventListener>() {
|
||||
object CallerTakeOverManager: CallerBase<ITakeOverEventListener>() {
|
||||
|
||||
fun invokeUpdateBgEvent(isPress: Boolean){
|
||||
fun invokeTakeOverEvent(isShow: Boolean){
|
||||
M_LISTENERS.forEach {
|
||||
val tag = it.key
|
||||
val listener = it.value
|
||||
listener.onUpdateBgEvent(isPress)
|
||||
listener.onTakeOverEvent(isShow)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user