|
@@ -232,6 +232,9 @@ public class TGdbhGdServiceImpl implements ITGdbhGdService {
|
|
|
TGdbhFlightDto dto_0 = flightDtoList.get(0);
|
|
|
TGdbhFlightDto dto_1 = flightDtoList.get(1);
|
|
|
Double dr_mr = Double.valueOf(tGdbhFlightMapper.stAzimuth(dto_0.getLongitude(), dto_0.getLatitude(), dto_1.getLongitude(), dto_1.getLatitude()));
|
|
|
+ if (dr_mr > 160) {
|
|
|
+ writeheading = "180.0";
|
|
|
+ }
|
|
|
|
|
|
for (int i = 0; i < flightDtoList.size(); i++) {
|
|
|
TGdbhFlightDto dto = flightDtoList.get(i);
|
|
@@ -265,7 +268,11 @@ public class TGdbhGdServiceImpl implements ITGdbhGdService {
|
|
|
writeheading = heading;
|
|
|
} else if (dr > 160) {
|
|
|
// writetilt = (360 - Double.parseDouble(tilt)) + "";
|
|
|
- writeheading = "180.0";
|
|
|
+ if ("180.0".equals(writeheading)) {
|
|
|
+ writeheading = "0.000001";
|
|
|
+ } else {
|
|
|
+ writeheading = "180.0";
|
|
|
+ }
|
|
|
writetilt = tilt;
|
|
|
} else {
|
|
|
writetilt = tilt;
|