Merge branch 'dev_robotaxi-d-app-module_251_220125_2.5.1' into dev_MogoAP_eagle-220_211207_8.0.17_merge

# Conflicts:
#	app/build.gradle
This commit is contained in:
donghongyu
2022-02-07 19:15:11 +08:00
1020 changed files with 27335 additions and 11036 deletions

View File

@@ -0,0 +1,142 @@
package com.mogo.eagle.core.data.autopilot
/**
* @author XuXinChao
* @description 工控机升级状态实体类
* @since: 2022/1/21
*/
class AdUpgradeStateHelper {
companion object{
private const val UPGRADE_QUIET = 0 //静默升级
private const val UPGRADE_HINT = 3 //提示升级
private const val DOWNLOAD_START = 30 //开始下载
private const val DOWNLOAD_FINISH = 31 //下载完成
private const val DOWNLOAD_FAILED = 32 //下载失败
private const val UPGRADE_AFFIRM = 60 //是否升级
private const val UPGRADE_SUCCEED = 61 //升级成功
private const val UPGRADE_FAILED = 62 //升级失败
private const val USER_AFFIRM = 63 //用户确认
private const val USER_CANCEL = 64 //用户取消
private var UPGRADING = false //工控机是否处于“升级中”状态
/**
* 如果工控机处于“下载中”、“可升级(下载完成)”、“升级中”、“升级失败”状态时,工具箱入口显示红色角标
* @param downloadStatus 下载状态
* @param upgradeStatus 升级状态
*/
fun showUpgradeTips(downloadStatus: Int,upgradeStatus: Int) : Boolean{
return isDownloading(downloadStatus) || isDownloadFinish(downloadStatus) || isUpgradeFailed(upgradeStatus)
}
/**
* 工控机是否处于“下载中”状态
* @param downloadStatus 下载状态
*/
fun isDownloading(downloadStatus: Int) : Boolean{
return downloadStatus == DOWNLOAD_START
}
/**
* 工控机是否处于“下载完成”(可升级)状态
* @param downloadStatus 下载状态
*/
fun isDownloadFinish(downloadStatus: Int) : Boolean{
return downloadStatus == DOWNLOAD_FINISH
}
/**
* 工控机是否处于“下载失败”状态
* @param downloadStatus 下载状态
*/
fun isDownloadFailed(downloadStatus: Int) : Boolean{
return downloadStatus == DOWNLOAD_FAILED
}
/**
* 工控机是否处于“升级成功”状态
* @param upgradeStatus 升级状态
*/
fun isUpgradeSuccess(upgradeStatus: Int) : Boolean{
return upgradeStatus == UPGRADE_SUCCEED
}
/**
* 工控机是否处于“升级失败”状态
* @param upgradeStatus 升级状态
*/
fun isUpgradeFailed(upgradeStatus: Int) : Boolean{
return upgradeStatus == UPGRADE_FAILED
}
/**
* 根据已下载包体大小和包体总大小获取当前下载进度 0-100
* @param currentProgress 当前已下载包体大小
* @param totalProgress 包体总大小
*/
fun downloadProgress(currentProgress: Int,totalProgress: Int) : Int{
return currentProgress*100/totalProgress
}
/**
* 工控机升级模式是否是静默升级
* @param upgradeMode 升级模式
*/
fun isQuietUpgradeMode(upgradeMode: Int) : Boolean{
return upgradeMode == UPGRADE_QUIET
}
/**
* 工控机升级模式是否是提示升级
* @param upgradeMode 升级模式
*/
fun isHintUpgradeMode(upgradeMode: Int) : Boolean{
return upgradeMode == UPGRADE_HINT
}
/**
* 获取是否处于“升级中”状态
*/
fun getUpgradeStatus() : Boolean{
return UPGRADING
}
/**
* 设置是否处于“升级中”状态
* @param upgrading 是否是升级中
*/
fun setUpgradeStatus(upgrading: Boolean){
UPGRADING = upgrading
}
/**
* 获取工控机包体下载剩余时间
*/
fun getRemainingTime(totalProgress: Int,previousProgress: Int,currentProgress: Int) : String{
//剩余包体大小
val remainingSize = totalProgress - currentProgress
//目前下载进度回调是1秒回调一次据此计算每秒下载的包大小
val speed = currentProgress - previousProgress
//剩余包体的大小除以每秒下载的大小,获得剩余下载时间
val time = remainingSize/speed
//转换为分秒格式返回
val minute = time/60
val second = time%60
if(minute>0 && second>0){
return minute.toString()+"分钟"+second+""
}else if(minute>0){
return minute.toString()+"分钟"
}else if(second>0){
return second.toString()+""
}else{
return ""
}
}
}
}

View File

@@ -1,14 +1,19 @@
package com.mogo.eagle.core.data.autopilot
import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey
import java.text.SimpleDateFormat
import java.util.*
@Entity(tableName = "record")
class AutoPilotRecordResult {
/**
* 磁盘可用空间(M)
*/
var diskFree: Int = 0
@ColumnInfo(name = "disk_free")
var diskFree: Long = 0
/**
* 采集时长
@@ -19,6 +24,7 @@ class AutoPilotRecordResult {
/**
* 保存的文件名
*/
@ColumnInfo(name = "file_name")
var fileName: String? = ""
@@ -27,7 +33,6 @@ class AutoPilotRecordResult {
*/
var note: String? = ""
/**
* 域控制器定义的bag key
*/
@@ -54,26 +59,23 @@ class AutoPilotRecordResult {
*/
var id: Int = 0
/**
* 时间戳格式YYYY-MM-DD-hh-mm-ss
*/
var timestamp: String? = ""
@PrimaryKey
var timestamp: String = SimpleDateFormat("yyyyMMddHHmmss", Locale.getDefault()).format(Date())
/**
* 此次采集数据总大小M
*/
var total: Int? = 0
var total: Long? = 0
/**
* 记录此条数据是否已消费
*/
@Volatile
var consumed: Boolean = false
override fun toString(): String {
return "AutoPilotRecordResult(diskFree=$diskFree, duration=$duration, fileName=$fileName, note=$note, key=$key, stat=$stat, type=$type, id=$id, timestamp=$timestamp, total=$total)"
}

View File

@@ -1,17 +1,9 @@
package com.mogo.eagle.core.data.autopilot;
import com.google.gson.annotations.SerializedName;
import com.mogo.eagle.core.data.autopilot.guardian.AutopilotCpuState;
import com.mogo.eagle.core.data.autopilot.guardian.AutopilotDiskState;
import com.mogo.eagle.core.data.autopilot.guardian.AutopilotHardwareState;
import com.mogo.eagle.core.data.autopilot.guardian.AutopilotMemState;
import com.mogo.eagle.core.data.autopilot.guardian.AutopilotNetFlowState;
import com.mogo.eagle.core.data.autopilot.guardian.AutopilotNodeState;
import com.mogo.eagle.core.data.autopilot.guardian.AutopilotProgramState;
import com.mogo.eagle.core.data.autopilot.guardian.AutopilotTopicState;
import com.mogo.eagle.core.data.autopilot.guardian.AutopilotGuardianModule;
import java.io.Serializable;
import java.util.List;
/**
* @author xiaoyuzhou
@@ -19,146 +11,103 @@ import java.util.List;
* 工控机节点状态信息
*/
public class AutopilotGuardianStatusInfo implements Serializable {
//接口名称
@SerializedName("action")
private String action;
@SerializedName("value")
private AutopilotGuardianResult value;
public static class AutopilotGuardianResult {
//车辆类型 WEY-长城 DF-东风 BYD-比亚迪 JINLV-金旅
@SerializedName("cartype")
private String carType;
//车牌号
@SerializedName("carnum")
private String carNum;
//ws连接状态 0-非链接 1-链接
@SerializedName("websocket_state")
private String wsState;
//ai云长链状态 0-非链接 1-链接
@SerializedName("aicloud_state")
private String aiCloudState;
//感知 eagle_hz
@SerializedName("eagle_hz")
private String eagleHz;
//软件节点
@SerializedName("nodestate")
private List<AutopilotNodeState> nodeState;
//topic
@SerializedName("topicstate")
private List<AutopilotTopicState> topicState;
//硬件节点
@SerializedName("hardwarestate")
private List<AutopilotHardwareState> hardwareState;
//CPU
@SerializedName("cpustate")
private AutopilotCpuState cpuState;
//内存
@SerializedName("memstate")
private AutopilotMemState memState;
//硬盘状态
@SerializedName("diskstate")
private List<AutopilotDiskState> diskState;
//占CPU最多的10个程序
@SerializedName("programcpustate")
private List<AutopilotProgramState> programCpuState;
//占内存最多的10个程序
@SerializedName("programmemstate")
private List<AutopilotProgramState> programMemState;
//流量
@SerializedName("netflowstate")
private List<AutopilotNetFlowState> netFlowState;
public String getCarType() {
return carType;
}
public String getCarNum() {
return carNum;
}
public String getWsState() {
return wsState;
}
public String getAiCloudState() {
return aiCloudState;
}
public List<AutopilotNodeState> getNodeState() {
return nodeState;
}
public List<AutopilotHardwareState> getHardwareState() {
return hardwareState;
}
public AutopilotCpuState getCpuState() {
return cpuState;
}
public AutopilotMemState getMemState() {
return memState;
}
public List<AutopilotDiskState> getDiskState() {
return diskState;
}
public String getEagleHz() {
return eagleHz;
}
public List<AutopilotProgramState> getProgramCpuState() {
return programCpuState;
}
public List<AutopilotProgramState> getProgramMemState() {
return programMemState;
}
public List<AutopilotNetFlowState> getNetFlowState() {
return netFlowState;
}
public List<AutopilotTopicState> getTopicState() {
return topicState;
}
@Override
public String toString() {
return "AutopilotGuardianResult{" +
"carType='" + carType + '\'' +
", carNum='" + carNum + '\'' +
", wsState='" + wsState + '\'' +
", aiCloudState='" + aiCloudState + '\'' +
", eagleHz='" + eagleHz + '\'' +
", nodeState=" + nodeState +
", topicState=" + topicState +
", hardwareState=" + hardwareState +
", cpuState=" + cpuState +
", memState=" + memState +
", diskState=" + diskState +
", programCpuState=" + programCpuState +
", programMemState=" + programMemState +
", netFlowState=" + netFlowState +
'}';
}
}
//监控项名称
@SerializedName("agentName")
private String agentName;
//车牌号
@SerializedName("carNum")
private String carNum;
//车型
@SerializedName("carType")
private String carType;
//monitorType
@SerializedName("monitorType")
private String monitorType;
//sn
@SerializedName("sn")
private String sn;
//时间
@SerializedName("time")
private long time;
@SerializedName("modules")
private AutopilotGuardianModule modules;
public String getAction() {
return action;
}
public AutopilotGuardianResult getValue() {
return value;
public void setAction(String action) {
this.action = action;
}
public String getAgentName() {
return agentName;
}
public void setAgentName(String agentName) {
this.agentName = agentName;
}
public String getCarNum() {
return carNum;
}
public void setCarNum(String carNum) {
this.carNum = carNum;
}
public String getCarType() {
return carType;
}
public void setCarType(String carType) {
this.carType = carType;
}
public String getMonitorType() {
return monitorType;
}
public void setMonitorType(String monitorType) {
this.monitorType = monitorType;
}
public String getSn() {
return sn;
}
public void setSn(String sn) {
this.sn = sn;
}
public long getTime() {
return time;
}
public void setTime(long time) {
this.time = time;
}
public AutopilotGuardianModule getModules() {
return modules;
}
public void setModules(AutopilotGuardianModule modules) {
this.modules = modules;
}
@Override
public String toString() {
return "AutopilotGuardianInfo{" +
"action='" + action + '\'' +
", value=" + value +
", agentName='" + agentName + '\'' +
", carNum='" + carNum + '\'' +
", carType='" + carType + '\'' +
", monitorType='" + monitorType + '\'' +
", modules=" + modules +
'}';
}
}

View File

@@ -1,6 +1,8 @@
package com.mogo.eagle.core.data.autopilot;
import com.google.gson.annotations.SerializedName;
import java.util.List;
/**
@@ -11,11 +13,15 @@ import java.util.List;
public class AutopilotRouteInfo {
@SerializedName("action")
private String action;
@SerializedName("models")
private List<RouteModels> models;
public static class RouteModels {
@SerializedName("lat")
private Double lat;
@SerializedName("lon")
private Double lon;
public Double getLat() {

View File

@@ -1,81 +0,0 @@
package com.mogo.eagle.core.data.autopilot.guardian;
import com.google.gson.annotations.SerializedName;
/**
* @author song kenan
* @des CPU状态
* @date 2021/8/11
*/
public class AutopilotCpuState {
//cup总使用率
@SerializedName("all")
private Double all;
@SerializedName("cpu1")
private Double cpu1;
@SerializedName("cpu2")
private Double cpu2;
@SerializedName("cpu3")
private Double cpu3;
@SerializedName("cpu4")
private Double cpu4;
@SerializedName("cpu5")
private Double cpu5;
@SerializedName("cpu6")
private Double cpu6;
@SerializedName("cpu7")
private Double cpu7;
@SerializedName("cpu8")
private Double cpu8;
public Double getAll() {
return all;
}
public Double getCpu1() {
return cpu1;
}
public Double getCpu2() {
return cpu2;
}
public Double getCpu3() {
return cpu3;
}
public Double getCpu4() {
return cpu4;
}
public Double getCpu5() {
return cpu5;
}
public Double getCpu6() {
return cpu6;
}
public Double getCpu7() {
return cpu7;
}
public Double getCpu8() {
return cpu8;
}
@Override
public String toString() {
return "AutopilotCpuState{" +
"all=" + all +
", cpu1=" + cpu1 +
", cpu2=" + cpu2 +
", cpu3=" + cpu3 +
", cpu4=" + cpu4 +
", cpu5=" + cpu5 +
", cpu6=" + cpu6 +
", cpu7=" + cpu7 +
", cpu8=" + cpu8 +
'}';
}
}

View File

@@ -1,65 +0,0 @@
package com.mogo.eagle.core.data.autopilot.guardian;
import com.google.gson.annotations.SerializedName;
/**
* @author song kenan
* @des 磁盘信息
* @date 2021/8/11
*/
public class AutopilotDiskState {
//磁盘总大小
@SerializedName("diskall")
private String diskall;
//磁盘空闲大小
@SerializedName("diskfree")
private String diskfree;
//磁盘挂在目录
@SerializedName("diskmount")
private String diskmount;
//磁盘名称
@SerializedName("diskname")
private String diskname;
//磁盘使用百分比
@SerializedName("diskpercent")
private String diskpercent;
//磁盘已使用大小
@SerializedName("diskuse")
private String diskuse;
public String getDiskall() {
return diskall;
}
public String getDiskfree() {
return diskfree;
}
public String getDiskmount() {
return diskmount;
}
public String getDiskname() {
return diskname;
}
public String getDiskpercent() {
return diskpercent;
}
public String getDiskuse() {
return diskuse;
}
@Override
public String toString() {
return "AutopilotDiskState{" +
"diskall='" + diskall + '\'' +
", diskfree='" + diskfree + '\'' +
", diskmount='" + diskmount + '\'' +
", diskname='" + diskname + '\'' +
", diskpercent='" + diskpercent + '\'' +
", diskuse='" + diskuse + '\'' +
'}';
}
}

View File

@@ -0,0 +1,39 @@
package com.mogo.eagle.core.data.autopilot.guardian;
import com.google.gson.annotations.SerializedName;
/**
* @author song kenan
* @des
* @date 2021/12/10
*/
public class AutopilotGuardianItem {
@SerializedName("name")
private String name;
@SerializedName("value")
private String value;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getValue() {
return value;
}
public void setValue(String value) {
this.value = value;
}
@Override
public String toString() {
return "GuardianItem{" +
"name='" + name + '\'' +
", value='" + value + '\'' +
'}';
}
}

View File

@@ -0,0 +1,41 @@
package com.mogo.eagle.core.data.autopilot.guardian;
import com.google.gson.annotations.SerializedName;
import java.util.List;
/**
* @author song kenan
* @des
* @date 2021/12/10
*/
public class AutopilotGuardianItemsName {
@SerializedName("name")
private String name;
@SerializedName("items")
private List<AutopilotGuardianItem> items;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public List<AutopilotGuardianItem> getItems() {
return items;
}
public void setItems(List<AutopilotGuardianItem> items) {
this.items = items;
}
@Override
public String toString() {
return "GuardianItemsName{" +
"name='" + name + '\'' +
", items=" + items +
'}';
}
}

View File

@@ -0,0 +1,41 @@
package com.mogo.eagle.core.data.autopilot.guardian;
import com.google.gson.annotations.SerializedName;
import java.util.List;
/**
* @author song kenan
* @des
* @date 2021/12/10
*/
public class AutopilotGuardianModule {
@SerializedName("itemsname")
private List<AutopilotGuardianItemsName> itemsname;
@SerializedName("submodules")
private List<AutopilotGuardianSubmodule> submodules;
public List<AutopilotGuardianItemsName> getItemsname() {
return itemsname;
}
public void setItemsname(List<AutopilotGuardianItemsName> itemsname) {
this.itemsname = itemsname;
}
public List<AutopilotGuardianSubmodule> getSubmodules() {
return submodules;
}
public void setSubmodules(List<AutopilotGuardianSubmodule> submodules) {
this.submodules = submodules;
}
@Override
public String toString() {
return "GuardianModule{" +
"itemsname=" + itemsname +
", submodules=" + submodules +
'}';
}
}

View File

@@ -0,0 +1,84 @@
package com.mogo.eagle.core.data.autopilot.guardian;
import com.google.gson.annotations.SerializedName;
import java.util.List;
/**
* @author song kenan
* @des
* @date 2021/12/10
*/
public class AutopilotGuardianSubmodule {
@SerializedName("modulename")
private String modulename;
@SerializedName("subnodes")
private List<Subnode> subnodes;
public String getModulename() {
return modulename;
}
public void setModulename(String modulename) {
this.modulename = modulename;
}
public List<Subnode> getSubnodes() {
return subnodes;
}
public void setSubnodes(List<Subnode> subnodes) {
this.subnodes = subnodes;
}
public static class Subnode {
@SerializedName("nodename")
private String nodename;
@SerializedName("nodeitems")
private List<AutopilotGuardianItemsName> nodeitems;
@SerializedName("topicitems")
private List<AutopilotGuardianItemsName> topicitems;
public String getNodename() {
return nodename;
}
public void setNodename(String nodename) {
this.nodename = nodename;
}
public List getNodeitems() {
return nodeitems;
}
public void setNodeitems(List nodeitems) {
this.nodeitems = nodeitems;
}
public List<AutopilotGuardianItemsName> getTopicitems() {
return topicitems;
}
public void setTopicitems(List<AutopilotGuardianItemsName> topicitems) {
this.topicitems = topicitems;
}
@Override
public String toString() {
return "Subnode{" +
"nodename='" + nodename + '\'' +
", nodeitems=" + nodeitems +
", topicitems=" + topicitems +
'}';
}
}
@Override
public String toString() {
return "GuardianSubmodule{" +
"modulename='" + modulename + '\'' +
", subnodes=" + subnodes +
'}';
}
}

View File

@@ -1,41 +0,0 @@
package com.mogo.eagle.core.data.autopilot.guardian;
import com.google.gson.annotations.SerializedName;
/**
* @author song kenan
* @des 硬件状态
* @date 2021/7/26
*/
public class AutopilotHardwareState {
/**
* 0不正常
*/
@SerializedName("run_hz")
private String runHz;
@SerializedName("set_hz")
private String setHz;
@SerializedName("topic_name")
private String topicName;
public String getRunHz() {
return runHz;
}
public String getSetHz() {
return setHz;
}
public String getTopicName() {
return topicName;
}
@Override
public String toString() {
return "AutopilotHardwareState{" +
"runHz='" + runHz + '\'' +
", setHz='" + setHz + '\'' +
", topicName='" + topicName + '\'' +
'}';
}
}

View File

@@ -1,49 +0,0 @@
package com.mogo.eagle.core.data.autopilot.guardian;
import com.google.gson.annotations.SerializedName;
/**
* @author song kenan
* @des 内存状态
* @date 2021/8/11
*/
public class AutopilotMemState {
//空闲内存(M)
@SerializedName("free")
private String free;
//内存使用百分比
@SerializedName("percent_mem")
private String percentMem;
//总内存M
@SerializedName("total_mem")
private String totalMem;
//使用的内存(M)
@SerializedName("used_mem")
private String usedMem;
public String getFree() {
return free;
}
public String getPercentMem() {
return percentMem;
}
public String getTotalMem() {
return totalMem;
}
public String getUsedMem() {
return usedMem;
}
@Override
public String toString() {
return "AutopilotMemState{" +
"free='" + free + '\'' +
", percentMem='" + percentMem + '\'' +
", totalMem='" + totalMem + '\'' +
", usedMem='" + usedMem + '\'' +
'}';
}
}

View File

@@ -1,38 +0,0 @@
package com.mogo.eagle.core.data.autopilot.guardian;
import com.google.gson.annotations.SerializedName;
/**
* @author song kenan
* @des 占用内存的程序
* @date 2021/8/16
*/
public class AutopilotNetFlowState {
@SerializedName("netname")
private String netName;
@SerializedName("recv_flow")
private String recvFlow;
@SerializedName("send_flow")
private String sendFlow;
public String getNetName() {
return netName;
}
public String getRecvFlow() {
return recvFlow;
}
public String getSendFlow() {
return sendFlow;
}
@Override
public String toString() {
return "AutopilotNetFlowState{" +
"netName='" + netName + '\'' +
", recvFlow='" + recvFlow + '\'' +
", sendFlow='" + sendFlow + '\'' +
'}';
}
}

View File

@@ -1,34 +0,0 @@
package com.mogo.eagle.core.data.autopilot.guardian;
import com.google.gson.annotations.SerializedName;
/**
* @author song kenan
* @des 工控机节点状态
* @date 2021/7/7
*/
public class AutopilotNodeState {
/**
* -on-开启, off-关闭
*/
@SerializedName("node_name")
private String nodeName;
@SerializedName("node_state")
private String nodeState;
public String getNodeName() {
return nodeName;
}
public String getNodeState() {
return nodeState;
}
@Override
public String toString() {
return "AutopilotNodeState{" +
"nodeName='" + nodeName + '\'' +
", nodeState='" + nodeState + '\'' +
'}';
}
}

View File

@@ -1,41 +0,0 @@
package com.mogo.eagle.core.data.autopilot.guardian;
import com.google.gson.annotations.SerializedName;
/**
* @author song kenan
* @des 占用内存的程序
* @date 2021/8/16
*/
public class AutopilotProgramState {
//cpu
@SerializedName("cpu_percent")
private String cpuPercent;
//内存
@SerializedName("mem_percent")
private String memPercent;
//name
@SerializedName("prog_name")
private String progName;
public String getCpuPercent() {
return cpuPercent;
}
public String getMemPercent() {
return memPercent;
}
public String getProgName() {
return progName;
}
@Override
public String toString() {
return "AutopilotProgramState{" +
"cpuPercent='" + cpuPercent + '\'' +
", memPercent='" + memPercent + '\'' +
", progName='" + progName + '\'' +
'}';
}
}

View File

@@ -1,39 +0,0 @@
package com.mogo.eagle.core.data.autopilot.guardian;
import com.google.gson.annotations.SerializedName;
/**
* @author song kenan
* @des topic info
* @date 2021/8/16
*/
public class AutopilotTopicState {
@SerializedName("run_hz")
private String runHz;
@SerializedName("set_hz")
private String setHz;
@SerializedName("topic_name")
private String topicName;
public String getRunHz() {
return runHz;
}
public String getSetHz() {
return setHz;
}
public String getTopicName() {
return topicName;
}
@Override
public String toString() {
return "AutopilotTopicState{" +
"runHz='" + runHz + '\'' +
", setHz='" + setHz + '\'' +
", topicName='" + topicName + '\'' +
'}';
}
}

View File

@@ -6,15 +6,48 @@ package com.mogo.eagle.core.data.config
* 功能构建配置文件,根据 APP 中build.gradle productFlavors 配置的不同将直接影响加载的功能的不同
*/
object FunctionBuildConfig {
/**
* 自车位置使用哪种外部数据源,0-Android系统1-工控机2-OBU
* 是否是演示美化模式会存在SP中方便做现场恢复
* 1.当点击【开始服务taxi/滑动出发bus】btn后不管实际自动驾驶按钮「state值」如何变更自动驾驶按钮都呈现2的状态。
* 只是自动驾驶按钮的样式为2-被选中的状态
* 若点击,则可继续向自动驾驶系统发送启动自动驾驶的命令。
* 2.车前引导线一直呈现,含人工接管过程中。
*/
@JvmField
var isDemoMode = false
/**
* 当前APP的身份模式
* 0 = 司机模式(默认)
* 1 = 乘客模式(部分功能受到影响)
*/
@JvmField
var appIdentityMode = 0
/**
* 自车位置使用哪种外部数据源
* 0 = Android系统
* 1 = 工控机
* 2 = OBU
*/
@JvmField
var gpsProvider = 0
/**
* 地图是否绘制Adas识别回调的Marker
* true - 绘制
* false - 不绘制
*/
@JvmField
var isDrawIdentifyData = true
/**
* 地图是否忽略判断条件直接绘制工控机引导线数据&全局路径规划
* 用于调试
* true - 忽略
* false - 不忽略
*/
@JvmField
var isIgnoreConditionsDrawAutopilotTrajectoryData = true
}

View File

@@ -15,4 +15,7 @@ object MoGoConfig {
// CMD全量日志抓取
const val CATCH_LOG = "CATCH_LOG"
// 是否是演示美化模式会存在SP中方便做现场恢复
const val IS_DEMO_MODE = "IS_DEMO_MODE"
}

View File

@@ -138,13 +138,6 @@ public class MogoServicePaths {
@Deprecated
public static final String PATH_ACTION_APIS = "/mogoaction/api";
/**
* 刷新策略控制
*/
@Keep
@Deprecated
public static final String PATH_REFRESH_STRATEGY_API = "/refreshstrategy/api";
/**
* 顶部1/2屏管理
*/
@@ -166,13 +159,6 @@ public class MogoServicePaths {
@Deprecated
public static final String PATH_MARKER_SERVICE = "/mogomarker/api";
/**
* 事件面板
*/
@Keep
@Deprecated
public static final String PATH_EVENT_PANEL = "/event/panel";
/**
* 位置上报
*/

View File

@@ -7,7 +7,7 @@ import com.mogo.eagle.core.data.enums.TrafficTypeEnum
* @date 2021/8/17 8:41 下午
* 交通元素数据,
*/
class TrafficData {
class /**/TrafficData {
/**
* 交通元素类型, 车、人、摩托、大巴车、卡车、自行车
*/