[dev_arch_opt_3.0]

[Change]
[
1、关闭经纬度记录操作
]

Signed-off-by: donghongyu <donghongyu@zhidaoauto.com>
This commit is contained in:
donghongyu
2023-02-07 21:05:02 +08:00
parent 1dcfe9c551
commit 96fe00083f
2 changed files with 11 additions and 7 deletions

View File

@@ -100,11 +100,11 @@ object CallerChassisLocationGCJ02ListenerManager : CallerBase<IMoGoChassisLocati
M_LISTENERS_HZ_LAST_SEND_TIME[tag] = TimeUtils.getNowMills() M_LISTENERS_HZ_LAST_SEND_TIME[tag] = TimeUtils.getNowMills()
val listener = it.value val listener = it.value
listener.onChassisLocationGCJ02(mogoLocation) listener.onChassisLocationGCJ02(mogoLocation)
FileUtils.writeToFile( // FileUtils.writeToFile(
"/sdcard/Download/", // "/sdcard/Download/",
"location_gcj02.txt", // "location_gcj02.txt",
"${mogoLocation.longitude},${mogoLocation.latitude},${sourceType}\n" // "${mogoLocation.longitude},${mogoLocation.latitude},${sourceType}\n"
) // )
} }

View File

@@ -39,7 +39,7 @@ object CallerChassisLocationWGS84ListenerManager : CallerBase<IMoGoChassisLocati
* @param gnssInfo * @param gnssInfo
*/ */
@Synchronized @Synchronized
fun invokeChassisLocationWGS84(gnssInfo: MogoLocation,sourceType: DataSourceType) { fun invokeChassisLocationWGS84(gnssInfo: MogoLocation, sourceType: DataSourceType) {
this.mGnssInfo = gnssInfo.clone() this.mGnssInfo = gnssInfo.clone()
M_LISTENERS.forEach { M_LISTENERS.forEach {
val tag = it.key val tag = it.key
@@ -82,7 +82,11 @@ object CallerChassisLocationWGS84ListenerManager : CallerBase<IMoGoChassisLocati
M_LISTENERS_HZ_LAST_SEND_TIME[tag] = TimeUtils.getNowMills() M_LISTENERS_HZ_LAST_SEND_TIME[tag] = TimeUtils.getNowMills()
val listener = it.value val listener = it.value
listener.onChassisLocationWGS84(mogoLocation) listener.onChassisLocationWGS84(mogoLocation)
FileUtils.writeToFile("/sdcard/Download/", "location_wgs84.txt", "${mogoLocation.longitude},${mogoLocation.latitude},${sourceType}\n") // FileUtils.writeToFile(
// "/sdcard/Download/",
// "location_wgs84.txt",
// "${mogoLocation.longitude},${mogoLocation.latitude},${sourceType}\n"
// )
} }