[autopilo]
[包车乘客屏到站后停止自驾]
This commit is contained in:
yangyakun
2023-08-30 20:03:59 +08:00
committed by zhongchao
parent 335a974a67
commit 0b9690c839
2 changed files with 17 additions and 4 deletions

View File

@@ -964,7 +964,7 @@ object CharterPassengerModel {
// 清理轨迹
cleanRoutePoints()
// 到站结束自驾
CallerAutoPilotControlManager.cancelAutoPilot()
CallerAutoPilotControlManager.cancelAutoPilot4Passenger()
// 结束路距计算 到达目的站点
endCalculateDistanceLoop()
// 到站置距离位0

View File

@@ -122,12 +122,25 @@ object CallerAutoPilotControlManager {
fun cancelAutoPilot() {
// 司机屏才能取消自动驾驶
if (AppIdentityModeUtils.isDriver(FunctionBuildConfig.appIdentityMode)) {
providerApi?.cancelAutoPilot()
// 更新记录在全局的控制参数
CallerAutoPilotStatusListenerManager.updateAutopilotControlParameters(null)
cancelAutoPilotInner()
}
}
/**
* 包车乘客屏 取消自驾(包车 乘客屏为中心)
*/
fun cancelAutoPilot4Passenger(){
if (AppIdentityModeUtils.isCharterPassenger(FunctionBuildConfig.appIdentityMode)) {
cancelAutoPilotInner()
}
}
private fun cancelAutoPilotInner() {
providerApi?.cancelAutoPilot()
// 更新记录在全局的控制参数
CallerAutoPilotStatusListenerManager.updateAutopilotControlParameters(null)
}
/**
* 开启域控制器录制bag包
*/