liusuyi
2025-11-24 c66e0c72eecc82fabe423c00a15b34dbb9228764
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
package com.ard.sample.wayline.model.dto;
 
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
 
/**
 * @author sean
 * @version 1.1
 * @date 2022/6/1
 */
@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":"悬停","2":"降落"
     * 失控动作,当前固定传的值是 0,即返航。注意该枚举值定义跟飞控跟机场定义的不一致,机场端会进行转换。
     * */
    @JsonProperty("out_of_control_action")
    private Integer outOfControlAction;
 
    @JsonProperty("simulate_mission")
    private WaylineSimulateMissionDTO simulateMission;
}