rain
2024-06-14 8d9a2d656e4ae007590c622e5f7c228adacdca49
src/main/java/com/dji/sample/control/service/IControlService.java
@@ -4,7 +4,10 @@
import com.dji.sample.component.mqtt.model.CommonTopicReceiver;
import com.dji.sample.control.model.enums.DroneAuthorityEnum;
import com.dji.sample.control.model.param.*;
import com.dji.sample.wayline.model.param.PointPOJO;
import org.springframework.messaging.MessageHeaders;
import java.util.List;
/**
 * @author sean
@@ -43,7 +46,7 @@
     * @param headers
     * @return
     */
    CommonTopicReceiver handleFlyToPointProgress(CommonTopicReceiver receiver, MessageHeaders headers);
    CommonTopicReceiver handleFlyToPointProgress(CommonTopicReceiver receiver, MessageHeaders headers) throws Exception;
    /**
     * Control the drone to take off.
@@ -63,6 +66,7 @@
    /**
     * Seize the control authority of the drone or the payload control authority.
     * 抢占无人机控制权限或有效载荷控制权限
     * @param sn
     * @param authority
     * @param param
@@ -79,4 +83,24 @@
    ResponseResult requestsConfig(String sn,String method, RequestsParam param);
    /**
     * 拍照
     * @param sn
     * @param payloadIndex
     * @return
     * @throws Exception
     */
     ResponseResult takePhoto(String sn,String payloadIndex) throws Exception;
    /**
     * 飞向下一个目标点
     * @param targetList 目标点集合
     * @param curIndex 当前飞行点索引
     * @param sn
     * @param payloadIndex 负载
     * @return
     * @throws Exception
     */
     ResponseResult flyToNextPoint(List<PointPOJO> targetList, int curIndex, String sn, String payloadIndex) throws Exception;
}