[6.0.0]
[autopilo] [包车乘客屏到站后停止自驾]
This commit is contained in:
@@ -964,7 +964,7 @@ object CharterPassengerModel {
|
||||
// 清理轨迹
|
||||
cleanRoutePoints()
|
||||
// 到站结束自驾
|
||||
CallerAutoPilotControlManager.cancelAutoPilot()
|
||||
CallerAutoPilotControlManager.cancelAutoPilot4Passenger()
|
||||
// 结束路距计算 到达目的站点
|
||||
endCalculateDistanceLoop()
|
||||
// 到站置距离位0
|
||||
|
||||
@@ -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包
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user