This commit is contained in:
zhongchao
2022-10-26 15:37:00 +08:00
parent 16c7bd9755
commit 5fcd887dff
10 changed files with 42 additions and 38 deletions

View File

@@ -1,6 +1,5 @@
package com.mogo.eagle.core.function.call.autopilot
import android.util.*
import androidx.annotation.Nullable
import com.mogo.eagle.core.data.autopilot.AutopilotControlParameters
import com.mogo.eagle.core.data.autopilot.AutopilotStatusInfo
@@ -67,18 +66,14 @@ object CallerAutoPilotStatusListenerManager : CallerBase() {
* 获取当前时刻WGS84 lat
*/
fun getCurWgs84Lat(): Double {
val locationLat = mAutopilotStatusInfo.locationLat
Log.d("GO", "wgs84_lat:" + locationLat)
return locationLat
return mAutopilotStatusInfo.locationLat
}
/**
* 获取当前时刻WGS84 lon
*/
fun getCurWgs84Lon(): Double {
val locationLon = mAutopilotStatusInfo.locationLon
Log.d("GO", "wgs84_lon:" + locationLon)
return locationLon
return mAutopilotStatusInfo.locationLon
}
/**