opt
This commit is contained in:
@@ -36,6 +36,7 @@ import com.mogo.map.navi.MogoTraffic;
|
||||
import com.mogo.map.uicontroller.IMogoMapUIController;
|
||||
import com.mogo.module.common.MogoModule;
|
||||
import com.mogo.module.common.MogoModulePaths;
|
||||
import com.mogo.module.common.entity.CloudLocationInfo;
|
||||
import com.mogo.module.common.entity.MarkerResponse;
|
||||
import com.mogo.module.common.map.MapCenterPointStrategy;
|
||||
import com.mogo.module.common.map.Scene;
|
||||
@@ -439,7 +440,7 @@ public class MogoServices implements IMogoMapListener,
|
||||
|
||||
AutoPilotRemoteController.getInstance().start();
|
||||
|
||||
// mThreadHandler.sendEmptyMessageDelayed( ServiceConst.MSG_SEND_CAR_LOCATION_AND_ADAS_RECOGNIZED_RESULT_2_SERVER, 0 );
|
||||
mThreadHandler.sendEmptyMessageDelayed( ServiceConst.MSG_SEND_CAR_LOCATION_AND_ADAS_RECOGNIZED_RESULT_2_SERVER, 0 );
|
||||
}
|
||||
|
||||
private void initLocationServiceProcess( Context context ) {
|
||||
@@ -459,17 +460,17 @@ public class MogoServices implements IMogoMapListener,
|
||||
LocationResult locationResult = null;
|
||||
if ( lastCarLocation != null ) {
|
||||
locationResult = new LocationResult();
|
||||
locationResult.lastCoordinate = new LocationResult.LocationInfo();
|
||||
locationResult.lastCoordinate.alt = lastCarLocation.getAltitude();
|
||||
locationResult.lastCoordinate.heading = lastCarLocation.getBearing();
|
||||
locationResult.lastCoordinate.lat = lastCarLocation.getLatitude();
|
||||
locationResult.lastCoordinate.lon = lastCarLocation.getLongitude();
|
||||
locationResult.lastCoordinate.satelliteTime = lastCarLocation.getTime();
|
||||
locationResult.lastCoordinate.systemTime = System.currentTimeMillis();
|
||||
locationResult.lastCoordinate.speed = lastCarLocation.getSpeed();
|
||||
locationResult.lastCoordinate = new CloudLocationInfo();
|
||||
locationResult.lastCoordinate.setAlt(lastCarLocation.getAltitude());
|
||||
locationResult.lastCoordinate.setHeading(lastCarLocation.getBearing());
|
||||
locationResult.lastCoordinate.setLat(lastCarLocation.getLatitude());
|
||||
locationResult.lastCoordinate.setLon(lastCarLocation.getLongitude());
|
||||
locationResult.lastCoordinate.setSatelliteTime(lastCarLocation.getTime());
|
||||
locationResult.lastCoordinate.setSystemTime(System.currentTimeMillis());
|
||||
locationResult.lastCoordinate.setSpeed(lastCarLocation.getSpeed());
|
||||
locationResult.coordinates = new ArrayList<>();
|
||||
locationResult.sn = com.mogo.commons.network.Utils.getSn();
|
||||
locationResult.mortonCode = MortonCode.wrapEncodeMorton( locationResult.lastCoordinate.lon, locationResult.lastCoordinate.lat );
|
||||
locationResult.mortonCode = MortonCode.wrapEncodeMorton( locationResult.lastCoordinate.getLon(), locationResult.lastCoordinate.getLat() );
|
||||
}
|
||||
List< ADASRecognizedResult > recognizedResults = MarkerServiceHandler.getADASController().getLastADASRecognizedResult();
|
||||
OnePerSecondSendContent content = new OnePerSecondSendContent();
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
package com.mogo.module.service.websocket;
|
||||
|
||||
import com.mogo.module.common.entity.CloudLocationInfo;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public
|
||||
@@ -14,16 +16,6 @@ class LocationResult {
|
||||
public String sn;
|
||||
public long mortonCode;
|
||||
|
||||
public LocationInfo lastCoordinate;
|
||||
public List< LocationInfo > coordinates;
|
||||
|
||||
public static class LocationInfo {
|
||||
public double lat;
|
||||
public double lon;
|
||||
public double heading;
|
||||
public long systemTime;
|
||||
public long satelliteTime;
|
||||
public double alt;
|
||||
public double speed;
|
||||
}
|
||||
public CloudLocationInfo lastCoordinate;
|
||||
public List< CloudLocationInfo > coordinates;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user