fix bug of map track to show and froze frame obj

This commit is contained in:
zhongchao
2022-06-30 16:19:34 +08:00
parent 70a8ea89c6
commit 9c033855af
6 changed files with 8 additions and 19 deletions

View File

@@ -122,7 +122,7 @@ class MoGoAdasListenerImpl : OnAdasListener {
CallerMapUIServiceManager.getMapUIController()?.syncLocation2Map(gnssInfo)
// 同步更新经纬度和系统时间至 AutoPilotStatusListener
CallerAutoPilotStatusListenerManager.updateAutoPilotLatLon(
gnssInfo.satelliteTime.toLong() * 1000,
gnssInfo.satelliteTime,
gnssInfo.longitude,
gnssInfo.latitude
)

View File

@@ -176,7 +176,7 @@ class MogoPrivateObuManager private constructor() {
// 同步给MAP地图
CallerMapUIServiceManager.getMapUIController()?.syncLocation2Map(data)
// 同步更新经纬度和系统时间至 AutoPilotStatusListener
CallerAutoPilotStatusListenerManager.updateAutoPilotLatLon(System.currentTimeMillis(),position.longitude, position.latitude)
CallerAutoPilotStatusListenerManager.updateAutoPilotLatLon(System.currentTimeMillis()/1000.0,position.longitude, position.latitude)
}
} catch (e: Exception) {

View File

@@ -42,7 +42,9 @@ open class AutopilotStatusInfo : Serializable, Cloneable {
@Volatile
var locationLon = 0.0
var satelliteTime = 0L
@Volatile
var satelliteTime = 0.0
/**
* 车速 m/s

View File

@@ -47,7 +47,7 @@ object CallerAutoPilotStatusListenerManager : CallerBase() {
/**
* 通过Gnss定位更新来同步更新自动驾驶状态
*/
fun updateAutoPilotLatLon(satelliteTime: Long, lon: Double, lat: Double) {
fun updateAutoPilotLatLon(satelliteTime: Double, lon: Double, lat: Double) {
mAutopilotStatusInfo.locationLat = lat
mAutopilotStatusInfo.locationLon = lon
mAutopilotStatusInfo.satelliteTime = satelliteTime
@@ -72,7 +72,7 @@ object CallerAutoPilotStatusListenerManager : CallerBase() {
/**
* 获取当前时刻WGS84 卫星时间
*/
fun getCurWgs84SatelliteTime(): Long {
fun getCurWgs84SatelliteTime(): Double {
return mAutopilotStatusInfo.satelliteTime
}

View File

@@ -113,7 +113,7 @@ public class AMapWrapper implements IMogoMap {
}
markerOptionsArrayList.add(markerOptions);
}
MarkerHelper.INSTANCE.updateBatchMarkerPositon(markerOptionsArrayList,false,8.0f,0,100,0);
MarkerHelper.INSTANCE.updateBatchMarkerPositon(markerOptionsArrayList,false,8.0f,1,100,0);
}
@Override

View File

@@ -156,19 +156,6 @@ public class BaseDrawer {
};
}
/**
* 返回当前自车SNTP时间
*
* @return SNTP时间
*/
protected long getCurSatelliteTime() {
long satelliteTime = CallerAutoPilotStatusListenerManager.INSTANCE.getCurWgs84SatelliteTime();
if (satelliteTime == 0) {
return System.currentTimeMillis();
}
return satelliteTime;
}
/**
* 模型颜色
*/