| | |
| | | package com.ard.sample.wayline.model.dto; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonInclude; |
| | | import com.fasterxml.jackson.annotation.JsonProperty; |
| | | import lombok.AllArgsConstructor; |
| | | import lombok.Builder; |
| | | import lombok.Data; |
| | |
| | | * @version 1.1 |
| | | * @date 2022/6/1 |
| | | */ |
| | | // 序列化时忽略所有 null 字段 |
| | | @JsonInclude(JsonInclude.Include.NON_NULL) |
| | | @Data |
| | | @Builder |
| | | @AllArgsConstructor |
| | | @NoArgsConstructor |
| | | public class WaylineTaskCreateDTO { |
| | | |
| | | /** |
| | | * 计划 ID |
| | | * */ |
| | | @JsonProperty("flight_id") |
| | | private String flightId; |
| | | |
| | | /** |
| | | * 任务类型 "0":"立即任务","1":"定时任务","2":"条件任务" |
| | | * 立即任务和定时任务均由execute_time指定执行时间; |
| | | * 条件任务支持ready_conditions字段指定任务就绪条件, |
| | | * 设备可在指定时间段内满足就绪条件后即可执行; |
| | | * 立即任务媒体上传优先级最高, |
| | | * 定时任务和条件任务媒体上传优先级相同 |
| | | * */ |
| | | @JsonProperty("task_type") |
| | | private Integer taskType; |
| | | |
| | | /** |
| | | * 航线精度类型 "0":"GPS 任务","1":"高精度 RTK 任务" |
| | | * 不确定是不是wayline_precision_type属性, |
| | | * */ |
| | | @JsonProperty("wayline_precision_type") |
| | | private Integer waylineType; |
| | | |
| | | /** |
| | | * 开始执行时间 |
| | | * 任务开始执行时间毫秒时间戳。可选字段。当 task_type 为 0 或 1 时必填,为 2 时非必填。 |
| | | * */ |
| | | @JsonProperty("execute_time") |
| | | private Long executeTime; |
| | | |
| | | /** |
| | | * 航线文件对象 |
| | | * */ |
| | | @JsonProperty("file") |
| | | private WaylineTaskFileDTO file; |
| | | |
| | | /** |
| | | * 返航高度 "max":1500,"min":20,"unit_name":"米 / m" |
| | | * */ |
| | | @JsonProperty("rth_altitude") |
| | | private Integer rthAltitude; |
| | | |
| | | /** |
| | | * 返航高度模式 "0":"智能高度","1":"设定高度" |
| | | * 智能返航模式下,飞行器将自动规划最佳返航高度。大疆机场当前不支持设置返航高度模式, |
| | | * 只能选择'设定高度'模式。当环境,光线不满足视觉系统要求时(譬如傍晚阳光直射、夜间弱光无光), |
| | | * 飞行器将使用您设定的返航高度进行直线返航 |
| | | * */ |
| | | @JsonProperty("rth_mode") |
| | | private Integer rthMode; |
| | | |
| | | /** |
| | | * 遥控器失控动作 "0":"返航","1":"悬停","2":"降落" |
| | | * 失控动作,当前固定传的值是 0,即返航。注意该枚举值定义跟飞控跟机场定义的不一致,机场端会进行转换。 |
| | | * */ |
| | | @JsonProperty("out_of_control_action") |
| | | private Integer outOfControlAction; |
| | | |
| | | // @JsonProperty("simulate_mission") |
| | | // private WaylineSimulateMissionDTO simulateMission; |
| | | } |