fix: 日志调整等级为info
This commit is contained in:
parent
b48b1c0fd3
commit
b3e3805b74
@ -269,13 +269,9 @@ public class D331RtcmMessageExecutor implements Executor<D331RtcmMessage, Void>
|
||||
// ByteUtil.bytesToHexString(buf.array()));
|
||||
}
|
||||
|
||||
if (logger.isDebugEnabled()) {
|
||||
try {
|
||||
logger.debug("insert1005 hex for base {} to {}: {}",
|
||||
deviceBs.getDeviceId(), deviceId,
|
||||
ByteUtil.bytesToHexString(buf1005.array()));
|
||||
} catch (Exception ignore) {}
|
||||
}
|
||||
logger.info("insert1005 hex for base {} to {}: {}",
|
||||
deviceBs.getDeviceId(), deviceId,
|
||||
ByteUtil.bytesToHexString(buf1005.array()));
|
||||
|
||||
return buf1005;
|
||||
}
|
||||
|
||||
@ -1,33 +0,0 @@
|
||||
package com.imdroid.beidou.util;
|
||||
|
||||
public class GeoCoordConverterUtil {
|
||||
public static class LLA_Coordinate {
|
||||
public double Latitude;
|
||||
public double Longitude;
|
||||
public double Altitude;
|
||||
public LLA_Coordinate(double lat,double lon,double alt){ this.Latitude=lat; this.Longitude=lon; this.Altitude=alt; }
|
||||
}
|
||||
public static class ECEF_Coordinate {
|
||||
public double ECEF_X;
|
||||
public double ECEF_Y;
|
||||
public double ECEF_Z;
|
||||
public ECEF_Coordinate(double x,double y,double z){ this.ECEF_X=x; this.ECEF_Y=y; this.ECEF_Z=z; }
|
||||
}
|
||||
public static ECEF_Coordinate LLA2ECEF(LLA_Coordinate L){
|
||||
double a = 6378137.0;
|
||||
double e2 = 6.69437999014e-3;
|
||||
double lat = Math.toRadians(L.Latitude);
|
||||
double lon = Math.toRadians(L.Longitude);
|
||||
double h = L.Altitude;
|
||||
double sinLat = Math.sin(lat);
|
||||
double cosLat = Math.cos(lat);
|
||||
double cosLon = Math.cos(lon);
|
||||
double sinLon = Math.sin(lon);
|
||||
double N = a / Math.sqrt(1 - e2 * sinLat * sinLat);
|
||||
double x = (N + h) * cosLat * cosLon;
|
||||
double y = (N + h) * cosLat * sinLon;
|
||||
double z = (N * (1 - e2) + h) * sinLat;
|
||||
return new ECEF_Coordinate(x,y,z);
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
package com.imdroid.sideslope.bd;
|
||||
package com.imdroid.common.util;
|
||||
|
||||
import static java.lang.Math.*;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user