remove test code

This commit is contained in:
zhongchao
2021-05-27 22:59:32 +08:00
parent e7799c815e
commit ebebb55d11
7 changed files with 24 additions and 28 deletions

View File

@@ -158,27 +158,25 @@ public class MogoApplication extends AbsMogoApplication {
// 设置是否是直播推流的主播
clientConfig.setAnchor(false);
// 设置从蘑菇AI开放平台获取的APPKey
// switch (DebugConfig.getCarMachineType()) {
// // 自研车机
// case DebugConfig.CAR_MACHINE_TYPE_SELF_INNOVATE:
// clientConfig.setThirdPartyAppKey("wbvpzgar");
// break;
// // 比亚迪
// case DebugConfig.CAR_MACHINE_TYPE_BYD:
// clientConfig.setThirdPartyAppKey("bydauto");
// break;
// // 衡阳-鹰眼项目
// case DebugConfig.CAR_MACHINE_TYPE_LENOVO:
// clientConfig.setThirdPartyAppKey("pfieouqg");
// break;
// }
clientConfig.setThirdPartyAppKey("pfieouqg"); // todo test验证用
switch (DebugConfig.getCarMachineType()) {
// 自研车机
case DebugConfig.CAR_MACHINE_TYPE_SELF_INNOVATE:
clientConfig.setThirdPartyAppKey("wbvpzgar");
break;
// 比亚迪
case DebugConfig.CAR_MACHINE_TYPE_BYD:
clientConfig.setThirdPartyAppKey("bydauto");
break;
// 衡阳-鹰眼项目
case DebugConfig.CAR_MACHINE_TYPE_LENOVO:
clientConfig.setThirdPartyAppKey("pfieouqg");
break;
}
// 设置应用服务AppId 长链、鉴权
clientConfig.setServiceAppId("com.mogo.launcher");
// 设置AI云平台分配给三方应用的签名密钥需要从AI云平台申请
// 设置车机设备的唯一标识(这些表识必须是通过后台录入的设备)
// clientConfig.setThirdPartyDeviceId(Utils.getDevicesId());
clientConfig.setThirdPartyDeviceId("937f4f21d7fabbd2"); // todo test验证用
clientConfig.setThirdPartyDeviceId(Utils.getDevicesId());
// 设置循环检测间隔时间
clientConfig.setLoopCheckDelay(15 * 1000);
@@ -207,7 +205,7 @@ public class MogoApplication extends AbsMogoApplication {
new IMoGoTokenCallback() {
@Override
public void onTokenGot(String token, String sn) {
// 初始化鹰眼HttpDns服务 todo 验证是否有问题
// 初始化鹰眼HttpDns服务
initMogoHttpDns();
// 鉴权成功后开启socket长链服务
prepareSocketAndLocationServices();
@@ -248,7 +246,7 @@ public class MogoApplication extends AbsMogoApplication {
MogoModulePaths.addBaseModule(new MogoModule(MogoServicePaths.PATH_WIDGETS, MogoServicePaths.PATH_WIDGETS));
// if (DebugConfig.isMapBased()) {
// MogoModulePaths.addModule(new MogoModule(CallChatConstant.PROVIDER, CallChatConstant.MODULE_NAME));
// MogoModulePaths.addModule(new MogoModule(CallChatConstant.PROVIDER, CallChatConstant.MODULE_NAME)); //todo 需要更新版本
// }
MogoModulePaths.addBaseModule(new MogoModule(ShareConstants.TAG, ShareConstants.MODEL_NAME));

View File

@@ -67,7 +67,7 @@ dependencies {
implementation project(':foudations:mogo-commons')
}
implementation 'com.zhidaoauto.machine:map:1.0.0-vr-8.5.32'
implementation 'com.zhidaoauto.machine:map:1.0.0-vr-8.5.33'
// implementation 'com.zhidaoauto.machine:map:1.0.0-vr-test-3.4'
}

View File

@@ -192,7 +192,7 @@ class AdasRecognizedResultDrawer extends BaseDrawer {
, foreCastMogoLatLon.getLon(), foreCastMogoLatLon.getLat());
long foreCastInternal = System.currentTimeMillis() - startTime;
Log.d(FORECAST, "foreCastInternal :" + foreCastInternal); //todo 看是否耗时增加的时间需要从当前SNTP时间减去
Log.d(FORECAST, "foreCastInternal :" + foreCastInternal); //todo 耗时1~2毫秒 需要测试是否由于补点算法造成
adasResult.lat = foreCastMogoLatLon.getLat();
adasResult.lon = foreCastMogoLatLon.getLon();

View File

@@ -393,7 +393,7 @@ public class SnapshotSetDataDrawer extends BaseDrawer implements IMogoMarkerClic
, foreCastMogoLatLon.getLon(), foreCastMogoLatLon.getLat());
long foreCastInternal = System.currentTimeMillis() - startTime;
Log.d(FORECAST, "foreCastInternal :" + foreCastInternal); //todo 看是否耗时增加的时间需要从当前SNTP时间减去
Log.d(FORECAST, "foreCastInternal :" + foreCastInternal); //todo 耗时1~2毫秒 需要测试是否由于补点算法造成
builder.setWgslat(foreCastMogoLatLon.getLat());
builder.setWgslon(foreCastMogoLatLon.getLon());

View File

@@ -148,7 +148,7 @@ public class MapMarkerManager implements IMogoMarkerClickListener,
@Override
public void onMsgReceived(SocketDownData.LauncherSnapshotProto mogoSnapshotSetData) {
DebugConfig.setStatus(DebugConfig.sDownloadSnapshot, true);
SnapshotSetDataDrawer.getInstance().renderSnapshotData(mogoSnapshotSetData);
// SnapshotSetDataDrawer.getInstance().renderSnapshotData(mogoSnapshotSetData); //todo 6月4号 提测版本中去掉云端下发数据展示
// Message msg = mSnapshotHandler.obtainMessage();
// msg.obj = mogoSnapshotSetData;
// msg.what = MSG_SNAPSHOT;

View File

@@ -6,8 +6,6 @@ import android.util.AttributeSet;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.MotionEvent;
import android.view.ViewGroup;
import android.widget.FrameLayout;
import android.widget.RelativeLayout;
import androidx.annotation.Nullable;
@@ -216,7 +214,7 @@ public class SmallMapDirectionView extends RelativeLayout {
setOnClickListener(view -> {
// if (DebugConfig.getCarMachineType() != DebugConfig.CAR_MACHINE_TYPE_LENOVO ) { // todo test验证用
if (DebugConfig.getCarMachineType() != DebugConfig.CAR_MACHINE_TYPE_LENOVO) {
MogoApisHandler.getInstance().getApis()
.getMapServiceApi()
.getMapUIController()
@@ -226,7 +224,7 @@ public class SmallMapDirectionView extends RelativeLayout {
.getAdasControllerApi()
.getCurrentSkinMode()
);
//}
}
});
}

View File

@@ -434,7 +434,7 @@ public class V2XModuleProvider implements
@Override
public void onMapVisualAngleChanged(VisualAngleMode visualAngleMode) {
//todo visual 涉及到V2X,V2N业务视距状态切换回调
//todo visual 涉及到V2X,V2N业务视距状态切换回调 切换到近景如何处理 产品侧需要定义
}
@Override