package com.dji.sample.control.model.param;
|
|
import com.dji.sdk.cloudapi.device.PayloadIndex;
|
import lombok.Data;
|
|
import javax.validation.constraints.Max;
|
import javax.validation.constraints.Min;
|
import javax.validation.constraints.NotNull;
|
|
/**
|
* @author wmm
|
* @version 0.1
|
* @date 2024/5/8
|
*/
|
@Data
|
public class CameraLookAtParam {
|
|
/**
|
* Camera enumeration.
|
* It is unofficial device_mode_key.
|
* The format is *{type-subtype-gimbalindex}*.
|
* Please read [Product Supported](https://developer.dji.com/doc/cloud-api-tutorial/en/overview/product-support.html)
|
*/
|
@NotNull
|
private PayloadIndex payloadIndex;
|
|
/**
|
* Whether the relative location of drone head and gimbal is locked
|
*/
|
@NotNull
|
private Boolean locked;
|
|
/**
|
* The latitude of target point is angular values.
|
* Negative values for south latitude and positive values for north latitude.
|
* It is accurate to six decimal places.
|
*/
|
@Min(-90)
|
@Max(90)
|
@NotNull
|
private Float latitude;
|
|
/**
|
* The latitude of target point is angular values.
|
* Negative values for west longitude and positive values for east longitude.
|
* It is accurate to six decimal places.
|
*/
|
@NotNull
|
@Min(-180)
|
@Max(180)
|
private Float longitude;
|
|
/**
|
* Ellipsoid height
|
*/
|
@NotNull
|
@Min(2)
|
@Max(10000)
|
private Float height;
|
|
}
|