[m1]
[1.1.2] [乘客屏到站结束自驾、启动自驾需要重置靠边停车状态]
This commit is contained in:
@@ -688,6 +688,8 @@ object CharterPassengerModel {
|
||||
if (null != data && 0 == data.code) {
|
||||
VoiceManager.arrivedStation(orderInfo!!.siteName!!)
|
||||
broadcastList["${it}$endKey"] = true
|
||||
// 到站结束自驾
|
||||
CallerAutoPilotControlManager.cancelAutoPilot()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -256,7 +256,10 @@ class LineSiteView @JvmOverloads constructor(
|
||||
}
|
||||
}
|
||||
tv_switch_line.onClick {
|
||||
if (gnssSpeed < 0.01) {
|
||||
if (gnssSpeed < 0.5) {
|
||||
// TODO: 自驾中 需要 靠边停车中、到站
|
||||
// TODO: 没有自驾中 需要 靠边停车中、到站
|
||||
|
||||
// 可以切换路径
|
||||
setEnableLineStatus(true)
|
||||
queryLineList()
|
||||
|
||||
@@ -6,11 +6,6 @@ import com.alibaba.android.arouter.launcher.ARouter
|
||||
import com.alibaba.android.arouter.utils.TextUtils
|
||||
import com.amap.api.maps.model.LatLng
|
||||
import com.elegant.network.utils.GsonUtil
|
||||
import com.magic.mogo.och.charter.manager.CharterAnalyticsManager
|
||||
import com.magic.mogo.och.charter.manager.CharterSendTripInfoManager
|
||||
import com.magic.mogo.och.charter.manager.CharterSendTripInfoManager.ARRIVE_STATION
|
||||
import com.magic.mogo.och.charter.manager.CharterSendTripInfoManager.END_TRIP
|
||||
import com.magic.mogo.och.charter.manager.CharterSendTripInfoManager.START_TRIP
|
||||
import com.magic.mogo.och.charter.R
|
||||
import com.magic.mogo.och.charter.bean.CheckOrderCountDownResponse
|
||||
import com.magic.mogo.och.charter.bean.QueryBusinessStatusResponse
|
||||
@@ -20,6 +15,11 @@ import com.magic.mogo.och.charter.callback.ChangeDestCallback
|
||||
import com.magic.mogo.och.charter.callback.DriverM1OrderCallback
|
||||
import com.magic.mogo.och.charter.callback.IDriverM1ControllerStatusCallback
|
||||
import com.magic.mogo.och.charter.constant.CharterConst
|
||||
import com.magic.mogo.och.charter.manager.CharterAnalyticsManager
|
||||
import com.magic.mogo.och.charter.manager.CharterSendTripInfoManager
|
||||
import com.magic.mogo.och.charter.manager.CharterSendTripInfoManager.ARRIVE_STATION
|
||||
import com.magic.mogo.och.charter.manager.CharterSendTripInfoManager.END_TRIP
|
||||
import com.magic.mogo.och.charter.manager.CharterSendTripInfoManager.START_TRIP
|
||||
import com.magic.mogo.och.charter.manager.CharterTrajectoryManager
|
||||
import com.magic.mogo.och.charter.net.DriverM1ServiceManager
|
||||
import com.mogo.aicloud.services.socket.IMogoOnMessageListener
|
||||
@@ -30,6 +30,7 @@ import com.mogo.eagle.core.data.autopilot.AutopilotControlParameters
|
||||
import com.mogo.eagle.core.data.map.MogoLocation
|
||||
import com.mogo.eagle.core.function.api.autopilot.IMoGoChassisLocationGCJ02Listener
|
||||
import com.mogo.eagle.core.function.api.telematic.IReceivedMsgListener
|
||||
import com.mogo.eagle.core.function.call.autopilot.CallerAutoPilotControlManager
|
||||
import com.mogo.eagle.core.function.call.autopilot.CallerAutoPilotControlManager.startAutoPilot
|
||||
import com.mogo.eagle.core.function.call.autopilot.CallerAutoPilotStatusListenerManager
|
||||
import com.mogo.eagle.core.function.call.autopilot.CallerChassisLocationGCJ02ListenerManager
|
||||
@@ -410,6 +411,7 @@ class DriverM1Model {
|
||||
*/
|
||||
fun restartAutopilot() {
|
||||
d(SceneConstant.M_CHARTER_D + TAG, "司机端-启动自动驾驶===")
|
||||
CallerAutoPilotControlManager.sendPlanningCmd(2)
|
||||
//只去启动自动驾驶
|
||||
startAutopilot()
|
||||
}
|
||||
@@ -677,6 +679,7 @@ class DriverM1Model {
|
||||
override fun onSuccess(data: BaseData?) {
|
||||
if (data != null && data.code == 0){
|
||||
d(SceneConstant.M_CHARTER_D + TAG, "confirmed station .")
|
||||
CallerAutoPilotControlManager.cancelAutoPilot()
|
||||
queryCurrentServiceStatus()
|
||||
sendCommitMsgToClient(true)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user