fix bug of map track to show and froze frame obj
This commit is contained in:
@@ -122,7 +122,7 @@ class MoGoAdasListenerImpl : OnAdasListener {
|
||||
CallerMapUIServiceManager.getMapUIController()?.syncLocation2Map(gnssInfo)
|
||||
// 同步更新经纬度和系统时间至 AutoPilotStatusListener
|
||||
CallerAutoPilotStatusListenerManager.updateAutoPilotLatLon(
|
||||
gnssInfo.satelliteTime.toLong() * 1000,
|
||||
gnssInfo.satelliteTime,
|
||||
gnssInfo.longitude,
|
||||
gnssInfo.latitude
|
||||
)
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -42,7 +42,9 @@ open class AutopilotStatusInfo : Serializable, Cloneable {
|
||||
|
||||
@Volatile
|
||||
var locationLon = 0.0
|
||||
var satelliteTime = 0L
|
||||
|
||||
@Volatile
|
||||
var satelliteTime = 0.0
|
||||
|
||||
/**
|
||||
* 车速 m/s
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user