@@ -164,14 +164,14 @@ public class MogoADASController implements IMogoADASController {
|
||||
|
||||
ADASCarStateInfo stateInfo = GsonUtil.objectFromJson(((String) msg.obj), ADASCarStateInfo.class);
|
||||
if (stateInfo == null || stateInfo.getValues() == null) {
|
||||
Logger.d(TAG, "ADAS-LOC-timer", "upd 到 aidl 传输数据 stateInfo or stateInfo.getValues() is null");
|
||||
// Logger.d(TAG, "ADAS-LOC-timer", "upd 到 aidl 传输数据 stateInfo or stateInfo.getValues() is null");
|
||||
return;
|
||||
}
|
||||
if (stateInfo.getValues().getStartReceiverDataTime() != null) {
|
||||
Logger.d("ADAS-LOC-timer", "upd 到 aidl 传输耗时:%s", start - Long.valueOf(stateInfo.getValues().getStartReceiverDataTime()));
|
||||
} else {
|
||||
Logger.d("ADAS-LOC-timer", "upd 到 aidl 传输耗时时间字段 startReceiverDataTime is null");
|
||||
}
|
||||
// if (stateInfo.getValues().getStartReceiverDataTime() != null) {
|
||||
// Logger.d("ADAS-LOC-timer", "upd 到 aidl 传输耗时:%s", start - Long.valueOf(stateInfo.getValues().getStartReceiverDataTime()));
|
||||
// } else {
|
||||
// Logger.d("ADAS-LOC-timer", "upd 到 aidl 传输耗时时间字段 startReceiverDataTime is null");
|
||||
// }
|
||||
|
||||
mLastLon = stateInfo.getValues().getLon();
|
||||
mLastLat = stateInfo.getValues().getLat();
|
||||
@@ -180,7 +180,7 @@ public class MogoADASController implements IMogoADASController {
|
||||
if (mMogoAdasCarDataCallback != null) {
|
||||
mMogoAdasCarDataCallback.onAdasCarDataCallback(stateInfo);
|
||||
}
|
||||
Logger.i("ADAS-LOC-timer", "cost " + (System.currentTimeMillis() - start) + "ms");
|
||||
// Logger.i("ADAS-LOC-timer", "cost " + (System.currentTimeMillis() - start) + "ms");
|
||||
}
|
||||
};
|
||||
|
||||
@@ -362,9 +362,11 @@ public class MogoADASController implements IMogoADASController {
|
||||
public void autopilotArrive(AdasAIDLAutopilotArriveModel autopilotArriveModel) {
|
||||
Logger.d(TAG, "autopilotArriveModel " + autopilotArriveModel);
|
||||
if (autopilotArriveModel == null) {
|
||||
Logger.d(TAG,"autopilotArrive autopilotArriveModel is null");
|
||||
return;
|
||||
}
|
||||
if (mAdasOCHCallback != null) {
|
||||
Logger.d(TAG,"autopilotArrive : " + autopilotArriveModel.toString());
|
||||
if (!mAdasOCHCallback.isEmpty()) {
|
||||
for (IMogoAdasOCHCallback cb : mAdasOCHCallback) {
|
||||
cb.onArriveAt(new AdasOCHData(
|
||||
autopilotArriveModel.getCarType(),
|
||||
|
||||
Reference in New Issue
Block a user