fixbug of ADAS send sn problem and note the foreCast latlon of adasRecognize data

This commit is contained in:
zhongchao
2021-05-27 16:07:38 +08:00
parent 8f0f61f554
commit fddb6f0e7d
9 changed files with 61 additions and 29 deletions

View File

@@ -80,7 +80,7 @@ class AdasRecognizedResultDrawer extends BaseDrawer {
}
List<ADASRecognizedResult> allDatumsList = new ArrayList<>();
prepareData(resultList, allDatumsList);
// prepareData(resultList, allDatumsList);
Map<String, IMogoMarker> newAdasRecognizedMarkersCaches = new ConcurrentHashMap<>();
List<ADASRecognizedResult> newDiffSet = new ArrayList<>();
@@ -159,7 +159,7 @@ class AdasRecognizedResultDrawer extends BaseDrawer {
* @param out
*/
private void prepareData(List<ADASRecognizedResult> in, List<ADASRecognizedResult> out) {
foreCastPoint(in);
// foreCastPoint(in);
out.addAll(in);
}
@@ -179,7 +179,7 @@ class AdasRecognizedResultDrawer extends BaseDrawer {
Log.d(FORECAST, "time internal less than 0 , uuid : " + adasResult.uuid);
continue;
}
long startTime = System.nanoTime();
long startTime = System.currentTimeMillis();
// 预测点
Log.d(FORECAST, "time internal : " + internal + " speed : " + adasResult.speed);
double foreCastDistance = adasResult.speed * internal / 1000;
@@ -191,7 +191,7 @@ class AdasRecognizedResultDrawer extends BaseDrawer {
float distanceFromSelf = CoordinateUtils.calculateLineDistance(getCurCoordinates()[0], getCurCoordinates()[1]
, foreCastMogoLatLon.getLon(), foreCastMogoLatLon.getLat());
long foreCastInternal = System.nanoTime() - startTime;
long foreCastInternal = System.currentTimeMillis() - startTime;
Log.d(FORECAST, "foreCastInternal :" + foreCastInternal); //todo 看是否耗时增加的时间需要从当前SNTP时间减去
adasResult.lat = foreCastMogoLatLon.getLat();

View File

@@ -380,7 +380,7 @@ public class SnapshotSetDataDrawer extends BaseDrawer implements IMogoMarkerClic
Log.d(FORECAST, "time internal less than 0 , uuid : " + proto.getUuid());
continue;
}
long startTime = System.nanoTime();
long startTime = System.currentTimeMillis();
// 预测点
Log.d(FORECAST, "time internal : " + internal + " speed : " + proto.getSpeed());
double foreCastDistance = proto.getSpeed() * internal / 1000;
@@ -392,7 +392,7 @@ public class SnapshotSetDataDrawer extends BaseDrawer implements IMogoMarkerClic
float distanceFromSelf = CoordinateUtils.calculateLineDistance(getCurCoordinates()[0], getCurCoordinates()[1]
, foreCastMogoLatLon.getLon(), foreCastMogoLatLon.getLat());
long foreCastInternal = System.nanoTime() - startTime;
long foreCastInternal = System.currentTimeMillis() - startTime;
Log.d(FORECAST, "foreCastInternal :" + foreCastInternal); //todo 看是否耗时增加的时间需要从当前SNTP时间减去
builder.setWgslat(foreCastMogoLatLon.getLat());