[5.0.0]
[模拟定位]
This commit is contained in:
@@ -9,9 +9,9 @@ import com.google.gson.reflect.TypeToken
|
||||
import com.mogo.eagle.core.data.enums.DataSourceType
|
||||
import com.mogo.eagle.core.data.map.MogoLocation
|
||||
import com.mogo.eagle.core.function.call.autopilot.CallerChassisDoorStateListenerManager
|
||||
import com.mogo.eagle.core.function.call.autopilot.CallerChassisGnssListenerManager
|
||||
import com.mogo.eagle.core.function.call.autopilot.CallerChassisLocationGCJ02ListenerManager
|
||||
import com.mogo.eagle.core.function.call.autopilot.CallerPlanningRottingListenerManager
|
||||
import com.mogo.eagle.core.utilcode.geometry.S2LaxPolygonShape.MultiList
|
||||
import com.mogo.eagle.core.utilcode.mogo.logger.CallerLogger
|
||||
import com.mogo.eagle.core.utilcode.mogo.logger.scene.SceneConstant
|
||||
import com.mogo.eagle.core.utilcode.util.GsonUtils
|
||||
@@ -83,15 +83,12 @@ object DebugDataDispatch {
|
||||
line.toString(),
|
||||
object : TypeToken<MogoLocationExit>() {}.type
|
||||
)
|
||||
val mogoLocation = MogoLocation()
|
||||
mogoLocation.latitude = list.msg.GnssInfo.latitude
|
||||
mogoLocation.longitude = list.msg.GnssInfo.longitude
|
||||
mogoLocation.heading = list.msg.GnssInfo.heading
|
||||
mogoLocation.gnssSpeed = list.msg.GnssInfo.gnssSpeed.toFloat()
|
||||
CallerChassisLocationGCJ02ListenerManager.invokeChassisLocationGCJ02(
|
||||
mogoLocation,
|
||||
DataSourceType.OBU
|
||||
)
|
||||
val newBuilder = MessagePad.GnssInfo.newBuilder()
|
||||
newBuilder.latitude = list.msg.GnssInfo.latitude
|
||||
newBuilder.longitude = list.msg.GnssInfo.longitude
|
||||
newBuilder.heading = list.msg.GnssInfo.heading
|
||||
newBuilder.gnssSpeed = list.msg.GnssInfo.gnssSpeed
|
||||
CallerChassisGnssListenerManager.invokeChassisGnssListener(newBuilder.build())
|
||||
Thread.sleep(100)
|
||||
}
|
||||
} catch (e: IOException) {
|
||||
|
||||
Reference in New Issue
Block a user