remove networkold api and union the adasapis and adasstatus lat lon data
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user