Merge branch 'dev_robotaxi-d_230809_6.0.0' into dev_robotaxi-d_230809_6.0.0_refactor
This commit is contained in:
@@ -28,7 +28,7 @@ class StartAutopilotAnimationView @JvmOverloads constructor(
|
||||
) : RelativeLayout(context, attrs, defStyleAttr){
|
||||
|
||||
companion object {
|
||||
private const val ALL_CLOSE_TIMER = 5000L
|
||||
private const val ALL_CLOSE_TIMER = 10000L
|
||||
private const val TAG = "StartAutopilotAnimationView"
|
||||
}
|
||||
|
||||
|
||||
@@ -73,11 +73,11 @@ class TaxiUnmannedConst {
|
||||
|
||||
const val TIMER_START_AUTOPILOT_INTERVAL = 20 * 1000L
|
||||
|
||||
const val TIMER_PREPARE_TASK_INTERVAL = 30 * 1000L //30s再次获取任务
|
||||
const val TIMER_PREPARE_TASK_INTERVAL = 120 * 1000L //120s再次获取任务
|
||||
|
||||
const val COUNTDOWN_INTERVAL = 5 * 1000L //30s再次获取任务
|
||||
const val COUNTDOWN_INTERVAL = 10 * 1000L // 自动启动自驾倒数计时
|
||||
|
||||
const val START_AUTOPILOT_ANIMATION_INTERVAL = 7 * 1000L //30s再次获取任务
|
||||
const val START_AUTOPILOT_ANIMATION_INTERVAL = 12 * 1000L // 12s 开启自驾闪烁动画
|
||||
|
||||
}
|
||||
}
|
||||
@@ -1078,6 +1078,6 @@ object TaxiModel {
|
||||
toStartTask() //状态流转
|
||||
startAutoPilot() //自驾开启
|
||||
VoiceNotice.showNotice("车辆正在自动开启自动驾驶")
|
||||
},COUNTDOWN_INTERVAL) // 5s后开启自驾, 状态流转
|
||||
},COUNTDOWN_INTERVAL) // 10s后开启自驾, 状态流转
|
||||
}
|
||||
}
|
||||
@@ -314,7 +314,7 @@ class TaxiUnmannedViewModel : BaseViewModel<UnmannedState, UnmannedIntent>(){
|
||||
d(TAG, "queryCurrentTaskOnce1 = pullTask" )
|
||||
|
||||
}else{
|
||||
startPrepareTask30S(result.endSite!!.siteId)
|
||||
startPrepareTask120S(result.endSite!!.siteId)
|
||||
d(TAG, "queryCurrentTaskOnce1 = startPrepareTask30S" )
|
||||
|
||||
}
|
||||
@@ -344,7 +344,7 @@ class TaxiUnmannedViewModel : BaseViewModel<UnmannedState, UnmannedIntent>(){
|
||||
|
||||
if (result.taskType <= TaskTypeEnum.ToOrderStartTask.code
|
||||
&& result.currentStatus == TaskStatusEnum.GetTask.code){//自动去启动自驾
|
||||
if (result.order != null && result.order!!.orderStatus < TaxiOrderStatusEnum.ArriveAtStart.code){
|
||||
if (!(result.order != null && result.order!!.orderStatus >= TaxiOrderStatusEnum.ArriveAtStart.code)){
|
||||
d(TAG, "queryCurrentTaskOnce1 = autoStartDriving" )
|
||||
TaxiModel.autoStartDriving()
|
||||
return
|
||||
@@ -405,7 +405,7 @@ class TaxiUnmannedViewModel : BaseViewModel<UnmannedState, UnmannedIntent>(){
|
||||
if (data.data.orderStatus == TaxiOrderStatusEnum.JourneyCompleted.code){//完成
|
||||
//获取新的任务
|
||||
if (mCurrentTaskAndOrder != null && mCurrentTaskAndOrder!!.endSite != null){
|
||||
startPrepareTask30S(mCurrentTaskAndOrder!!.endSite!!.siteId)
|
||||
startPrepareTask120S(mCurrentTaskAndOrder!!.endSite!!.siteId)
|
||||
}
|
||||
mCurrentTaskAndOrder = null
|
||||
updateNoTaskAndOrderUi()
|
||||
@@ -431,7 +431,7 @@ class TaxiUnmannedViewModel : BaseViewModel<UnmannedState, UnmannedIntent>(){
|
||||
}
|
||||
}
|
||||
|
||||
private fun startPrepareTask30S(siteId: Long) {
|
||||
private fun startPrepareTask120S(siteId: Long) {
|
||||
UiThreadHandler.postDelayed({
|
||||
pullTask(siteId)
|
||||
}, TaxiUnmannedConst.TIMER_PREPARE_TASK_INTERVAL)
|
||||
@@ -453,7 +453,7 @@ class TaxiUnmannedViewModel : BaseViewModel<UnmannedState, UnmannedIntent>(){
|
||||
override fun onFail(code: Int, msg: String?) {
|
||||
d(SceneConstant.M_TAXI + TAG, "$code $msg")
|
||||
if (isLogin() && isOpeningOrderStatus()){
|
||||
startPrepareTask30S(siteId) //失败后30s再次调用获取下一任务
|
||||
startPrepareTask120S(siteId) //失败后30s再次调用获取下一任务
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -34,6 +34,7 @@ import com.mogo.eagle.core.utilcode.util.TimeUtils.millis2String
|
||||
import com.zhidao.loglib.call.LogInfoManagerFactory
|
||||
import com.zhidao.loglib.upload.OnUploadListener
|
||||
import com.zhidao.loglib.upload.UploadManager
|
||||
import com.zhidao.loglib.util.FileUtil
|
||||
import com.zhjt.mogo_core_function_devatools.R
|
||||
import com.zhjt.mogo_core_function_devatools.badcase.BadCaseAnalyticsManager
|
||||
import com.zhjt.mogo_core_function_devatools.badcase.BadCaseManager
|
||||
@@ -249,14 +250,18 @@ class InitiativeBadCaseWindow constructor(activity: Activity) : View.OnTouchList
|
||||
val singlePath = "/mnt/sdcard/mogo/DataCollection/${audioFileName}.wav"
|
||||
val file = File(singlePath)
|
||||
if(file.exists()){
|
||||
LogInfoManagerFactory.createAudioUpload(mActivity.applicationContext,"Audio",singlePath,
|
||||
LogInfoManagerFactory.createAudioUpload(mActivity.applicationContext,
|
||||
TAG, MoGoAiCloudClientConfig.getInstance().sn,singlePath,
|
||||
object : OnUploadListener {
|
||||
override fun onUploadSuccess(filePath: String, downloadUrl: String) {
|
||||
override fun onUploadSuccess(key: String, filePath: String, downloadUrl: String) {
|
||||
CallerLogger.d("$M_DEVA$TAG", "语音文件上传成功:downloadUrl=$downloadUrl")
|
||||
//将语音文件上传Cos监听移除
|
||||
removeUploadListener(singlePath)
|
||||
//上传到服务器
|
||||
upload(downloadUrl)
|
||||
if(key == TAG){
|
||||
FileUtil.deleteFile(File(filePath))
|
||||
}
|
||||
}
|
||||
|
||||
override fun onUploadFail(filePath: String) {
|
||||
|
||||
@@ -40,6 +40,7 @@ import kotlinx.coroutines.GlobalScope
|
||||
import kotlinx.coroutines.launch
|
||||
import mogo.telematics.pad.MessagePad
|
||||
import com.zhidao.loglib.upload.UploadManager
|
||||
import com.zhidao.loglib.util.FileUtil
|
||||
import com.zhjt.mogo_core_function_devatools.badcase.BadCaseAnalyticsManager
|
||||
import me.jessyan.autosize.utils.AutoSizeUtils
|
||||
import org.greenrobot.eventbus.EventBus
|
||||
@@ -211,14 +212,18 @@ class PassiveBadCaseWindow constructor(activity: Activity) : View.OnTouchListene
|
||||
val singlePath = "/mnt/sdcard/mogo/DataCollection/${audioFileName}.wav"
|
||||
val file = File(singlePath)
|
||||
if(file.exists()){
|
||||
LogInfoManagerFactory.createAudioUpload(mActivity.applicationContext,"Audio",singlePath,
|
||||
LogInfoManagerFactory.createAudioUpload(mActivity.applicationContext,
|
||||
TAG, MoGoAiCloudClientConfig.getInstance().sn,singlePath,
|
||||
object : OnUploadListener {
|
||||
override fun onUploadSuccess(filePath: String, downloadUrl: String) {
|
||||
override fun onUploadSuccess(key: String, filePath: String, downloadUrl: String) {
|
||||
CallerLogger.d("$M_DEVA$TAG", "语音文件上传成功:downloadUrl=$downloadUrl")
|
||||
//将语音文件上传Cos监听移除
|
||||
removeUploadListener(singlePath)
|
||||
//上传到服务器
|
||||
upload(downloadUrl)
|
||||
if(key == TAG){
|
||||
FileUtil.deleteFile(File(filePath))
|
||||
}
|
||||
}
|
||||
|
||||
override fun onUploadFail(filePath: String) {
|
||||
|
||||
@@ -58,7 +58,7 @@ bytex.ASM_API=ASM7
|
||||
|
||||
################ 外部依赖引用 ################
|
||||
# loglib
|
||||
LOGLIB_VERSION=1.9.1
|
||||
LOGLIB_VERSION=1.9.3
|
||||
######## MogoAiCloudSDK Version ########
|
||||
# 网络请求LOGLIB_VERSION
|
||||
MOGO_NETWORK_VERSION=1.4.7.12
|
||||
@@ -80,7 +80,7 @@ MOGO_LOCATION_VERSION=1.4.7.12
|
||||
MOGO_TELEMATIC_VERSION=1.4.7.12
|
||||
######## MogoAiCloudSDK Version ########
|
||||
# 自研地图
|
||||
MAP_SDK_VERSION=2.14.2.8
|
||||
MAP_SDK_VERSION=2.14.2.10
|
||||
MAP_SDK_OPERATION_VERSION=1.1.4.1
|
||||
# websocket
|
||||
WEBSOCKET_VERSION=1.1.7
|
||||
|
||||
@@ -716,7 +716,6 @@ public class AMapViewWrapper implements IMogoMapView,
|
||||
CallerMapDevaListenerManager.INSTANCE.invokeUploadLogFile(filePath);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public void onMapClick(@Nullable LonLatPoint lonLatPoint) {
|
||||
MogoMapListenerHandler.Companion.getMogoMapListenerHandler().onMapClick(ObjectUtils.fromAMap(lonLatPoint));
|
||||
|
||||
Reference in New Issue
Block a user