From c5320fbf7fd671ba7ccefe66e951edeebb4252b2 Mon Sep 17 00:00:00 2001
From: guoshilong <123456>
Date: Tue, 26 Sep 2023 16:24:51 +0800
Subject: [PATCH] 媒体模块

---
 src/main/java/com/dji/sample/control/service/IControlService.java |   65 +++++++++++++++++++++++++++++++-
 1 files changed, 63 insertions(+), 2 deletions(-)

diff --git a/src/main/java/com/dji/sample/control/service/IControlService.java b/src/main/java/com/dji/sample/control/service/IControlService.java
index 7f2de02..f9e122b 100644
--- a/src/main/java/com/dji/sample/control/service/IControlService.java
+++ b/src/main/java/com/dji/sample/control/service/IControlService.java
@@ -2,6 +2,8 @@
 
 import com.dji.sample.common.model.ResponseResult;
 import com.dji.sample.component.mqtt.model.CommonTopicReceiver;
+import com.dji.sample.control.model.enums.DroneAuthorityEnum;
+import com.dji.sample.control.model.param.*;
 import org.springframework.messaging.MessageHeaders;
 
 /**
@@ -11,8 +13,67 @@
  */
 public interface IControlService {
 
-    ResponseResult controlDock(String sn, String serviceIdentifier);
+    /**
+     * Remotely debug the dock via commands.
+     * @param sn
+     * @param serviceIdentifier
+     * @param param
+     * @return
+     */
+    ResponseResult controlDockDebug(String sn, String serviceIdentifier, RemoteDebugParam param);
 
-    void handleControlProgress(CommonTopicReceiver receiver, MessageHeaders headers);
+    /**
+     * Make the drone fly to the target point.
+     * @param sn
+     * @param param
+     * @return
+     */
+    ResponseResult flyToPoint(String sn, FlyToPointParam param);
 
+    /**
+     * End the mission of flying the drone to the target point.
+     * @param sn
+     * @return
+     */
+    ResponseResult flyToPointStop(String sn);
+
+    /**
+     * Handle progress result notifications for fly to target point.
+     * @param receiver
+     * @param headers
+     * @return
+     */
+    CommonTopicReceiver handleFlyToPointProgress(CommonTopicReceiver receiver, MessageHeaders headers);
+
+    /**
+     * Control the drone to take off.
+     * @param sn
+     * @param param
+     * @return
+     */
+    ResponseResult takeoffToPoint(String sn, TakeoffToPointParam param);
+
+    /**
+     * Handle progress result notifications for takeoff to target point.
+     * @param receiver
+     * @param headers
+     * @return
+     */
+    CommonTopicReceiver handleTakeoffToPointProgress(CommonTopicReceiver receiver, MessageHeaders headers);
+
+    /**
+     * Seize the control authority of the drone or the payload control authority.
+     * @param sn
+     * @param authority
+     * @param param
+     * @return
+     */
+    ResponseResult seizeAuthority(String sn, DroneAuthorityEnum authority, DronePayloadParam param);
+
+    /**
+     * Control the payload of the drone.
+     * @param param
+     * @return
+     */
+    ResponseResult payloadCommands(PayloadCommandsParam param) throws Exception;
 }

--
Gitblit v1.9.3