Commit 6f3aa029 by gdj

完善框选变焦。

parent 510918c7
......@@ -289,6 +289,20 @@ public abstract class AbstractControlService {
}
/**
* Payload control - 框选变焦
* @param gateway
* @param request data
* @return services_reply
*/
@CloudSDKVersion(exclude = GatewayTypeEnum.RC)
public TopicServicesResponse<ServicesReplyData> cameraFrameZoom(GatewayManager gateway, CameraFrameZoomRequest request) {
return servicesPublish.publish(
gateway.getGatewaySn(),
ControlMethodEnum.CAMERA_FRAME_ZOOM.getMethod(),
request);
}
/**
* Payload control - zoom
* @param gateway
* @param request data
......
......@@ -50,5 +50,11 @@ public class DronePayloadParam {
@Range(min = 0, max = 1)
private Double y;
@Range(min = 0, max = 1)
private Double width;
@Range(min = 0, max = 1)
private Double height;
private GimbalResetModeEnum resetMode;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment