|
|
@@ -271,6 +271,7 @@ public class SDKDeviceService extends AbstractDeviceService {
|
|
|
case RETURN_AUTO:
|
|
|
case LIVE_FLIGHT_CONTROLS:
|
|
|
case LANDING_THREE_PROPELLER:
|
|
|
+ case APAS:
|
|
|
FlightTaskDTO flightTask = getFlightTask(device);
|
|
|
if(flightTask == null) {
|
|
|
Optional<String> lockOpt = deviceRedisService.getDroneFlightTaskLock(device.getDeviceSn());
|
|
|
@@ -416,10 +417,10 @@ public class SDKDeviceService extends AbstractDeviceService {
|
|
|
}
|
|
|
|
|
|
private boolean isSamePoint(OsdRcDrone data,FlightTrackEntity lastPoint) {
|
|
|
- return data.getLongitude().doubleValue() == lastPoint.getLongitude().doubleValue()
|
|
|
- && data.getLatitude().doubleValue() == lastPoint.getLatitude().doubleValue()
|
|
|
- && data.getHeight().doubleValue() == lastPoint.getAltitude().doubleValue()
|
|
|
- && data.getElevation().doubleValue() == lastPoint.getElevation().doubleValue();
|
|
|
+ return data.getLongitude().doubleValue() == lastPoint.getLongitude()
|
|
|
+ && data.getLatitude().doubleValue() == lastPoint.getLatitude()
|
|
|
+ && data.getHeight().doubleValue() == lastPoint.getAltitude()
|
|
|
+ && data.getElevation().doubleValue() == lastPoint.getElevation();
|
|
|
}
|
|
|
|
|
|
private int updateFlightTask(FlightTaskDTO task) {
|