fix bug and add log

This commit is contained in:
zhongchao
2021-05-26 22:40:39 +08:00
parent e47a344640
commit f91c92e1fd
3 changed files with 46 additions and 44 deletions

View File

@@ -181,8 +181,8 @@ class AdasRecognizedResultDrawer extends BaseDrawer {
}
long startTime = System.nanoTime();
// 预测点
Log.d(FORECAST, "time internal : " + internal);
double foreCastDistance = adasResult.speed * internal;
Log.d(FORECAST, "time internal : " + internal + " speed : " + adasResult.speed);
double foreCastDistance = adasResult.speed * internal / 1000;
Log.d(FORECAST, "foreCastDistance : " + foreCastDistance);
MogoLatLng mogoLatLng = new MogoLatLng(adasResult.lat, adasResult.lon);
MogoLatLng foreCastMogoLatLon = Trigonometric.getNewLocation(mogoLatLng, foreCastDistance, adasResult.heading);

View File

@@ -324,7 +324,7 @@ public class SnapshotSetDataDrawer extends BaseDrawer implements IMogoMarkerClic
}
/**
* 过滤数据,对数据补点 //todo 重构
* 过滤数据,对数据补点
*
* @param in 输入集合
* @param out 输出集合
@@ -378,8 +378,8 @@ public class SnapshotSetDataDrawer extends BaseDrawer implements IMogoMarkerClic
}
long startTime = System.nanoTime();
// 预测点
Log.d(FORECAST, "time internal : " + internal);
double foreCastDistance = proto.getSpeed() * internal;
Log.d(FORECAST, "time internal : " + internal + " speed : " + proto.getSpeed());
double foreCastDistance = proto.getSpeed() * internal / 1000;
Log.d(FORECAST, "foreCastDistance : " + foreCastDistance);
MogoLatLng mogoLatLng = new MogoLatLng(proto.getWgslat(), proto.getWgslon());
MogoLatLng foreCastMogoLatLon = Trigonometric.getNewLocation(mogoLatLng, foreCastDistance, proto.getHeading());