remove networkold api and union the adasapis and adasstatus lat lon data

This commit is contained in:
zhongchao
2022-03-29 19:09:35 +08:00
committed by pangfan
parent ac6186c1da
commit 26cf469f00
43 changed files with 129 additions and 732 deletions

View File

@@ -293,57 +293,6 @@ public class DebugConfig {
DebugConfig.downloadSnapshot = downloadSnapshot;
}
// 环境状态
public static final int sLocation = 0;
public static final int sAdasRecognized = 1;
public static final int sDownloadSnapshot = 2;
public static final int sAutoPilotStatus = 3;
public static final int sDownloadLink = 4;
public static final int sLon = 5;
public static final int sLat = 6;
public static String[] sStatus = new String[]{
"false",
"false",
"false",
"0",
"false",
"0",
"0"
};
public synchronized static void setStatus(int type, boolean status) {
sStatus[type] = String.valueOf(status);
}
public synchronized static void setStatusData(int type, double data) {
sStatus[type] = String.valueOf(data);
}
public synchronized static void setAutoPilotStatus(String status) {
sStatus[sAutoPilotStatus] = status;
}
public synchronized static String getAutoPilotStatus() {
return sStatus[sAutoPilotStatus];
}
public synchronized static String getStatus(int type, boolean set2False) {
String result = sStatus[type];
if (set2False) {
sStatus[type] = "false";
}
return result;
}
public synchronized static String getStatusData(int type) {
if (type > 4) {
return sStatus[type].toString();
} else {
return "0";
}
}
private static boolean isUseAdasRecognize = true;
public static void setUseAdasRecognize(boolean status) {