This commit is contained in:
wangcongtao
2021-02-24 18:36:40 +08:00
parent daa94e6058
commit 489986f336
8 changed files with 23 additions and 12 deletions

View File

@@ -976,6 +976,11 @@ public class MogoServices implements IMogoMapListener,
} catch ( Exception e ) {
e.printStackTrace();
}
try {
data.putOpt( "satelliteTime", Long.valueOf( stateInfo.getValues().getSatelliteTime() ) );
} catch ( Exception e ) {
e.printStackTrace();
}
try {
data.putOpt( "receiverDataTime", Long.valueOf( stateInfo.getValues().getReceiverDataTime() ) );
} catch ( Exception e ) {

View File

@@ -81,12 +81,8 @@ class SnapshotLocationController {
double acceleration = data.optDouble( "acceleration", -1 );
double yawRate = data.optDouble( "yawRate", -1 );
double speed = data.optDouble( "speed", -1 );
long satelliteTime = 0L;
try {
satelliteTime = Long.valueOf( data.optString( "satelliteTime" ) );
} catch ( Exception e ) {
e.printStackTrace();
}
long satelliteTime = data.optLong( "satelliteTime" );
long systemTime = data.optLong( "systemTime" );
CloudLocationInfo cloudLocationInfo = new CloudLocationInfo();
cloudLocationInfo.setAlt( alt );
@@ -95,7 +91,7 @@ class SnapshotLocationController {
cloudLocationInfo.setLon( lon );
cloudLocationInfo.setSpeed( speed );
cloudLocationInfo.setSatelliteTime( satelliteTime );
cloudLocationInfo.setSystemTime( System.currentTimeMillis() );
cloudLocationInfo.setSystemTime( systemTime );
cloudLocationInfo.convertCoor2GCJ02();
mLastLocationInfo = cloudLocationInfo;
mMachineCacheList.add( cloudLocationInfo );