|
@@ -235,17 +235,19 @@ public class TGdbhGdServiceImpl implements ITGdbhGdService {
|
|
|
Double dr = Math.abs(dr_hou - dr_qian);
|
|
|
if (dr > 10) {
|
|
|
tilt = "0.100000000000000006";
|
|
|
- }
|
|
|
- if (i > 3) {
|
|
|
- TGdbhFlightDto dto_pingxing2 = flightDtoList.get(i - 2);
|
|
|
- TGdbhFlightDto dto_pingxing3 = flightDtoList.get(i - 3);
|
|
|
- Double dr_pingxing = Double.valueOf(tGdbhFlightMapper.stAzimuth(dto_pingxing3.getLongitude(), dto_pingxing3.getLatitude(), dto_pingxing2.getLongitude(), dto_pingxing2.getLatitude()));
|
|
|
- Double dr_px = Math.abs(dr_qian - dr_pingxing);
|
|
|
- if (dr_px > 160) {
|
|
|
- tilt = "0.100000000000000006";
|
|
|
- heading = (360 - Double.parseDouble(heading)) + "";
|
|
|
+ } else {
|
|
|
+ if (i > 3) {
|
|
|
+ TGdbhFlightDto dto_pingxing2 = flightDtoList.get(i - 2);
|
|
|
+ TGdbhFlightDto dto_pingxing3 = flightDtoList.get(i - 3);
|
|
|
+ Double dr_pingxing = Double.valueOf(tGdbhFlightMapper.stAzimuth(dto_pingxing3.getLongitude(), dto_pingxing3.getLatitude(), dto_pingxing2.getLongitude(), dto_pingxing2.getLatitude()));
|
|
|
+ Double dr_px = Math.abs(dr_qian - dr_pingxing);
|
|
|
+ System.out.println("dr_px:" + dr_px);
|
|
|
+ if (dr_px > 160) {
|
|
|
+ tilt = (360 - Double.parseDouble(tilt)) + "";
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
}
|
|
|
String height = dto.getHeight();
|
|
|
if (null != tGdbhFlightBatchDto) {
|