package com.multictrl.modules.business.q20.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * Q20航线任务 - 航点DTO
 *
 * @author 938693313@qq.com
 * @since 1.0.0 2026/5/20
 */
@Data
@Schema(description = "单个航点信息")
public class Q20RoutePlacemarkDTO {

    @Schema(description = "航点序号，从0开始")
    private int index;

    @Schema(description = "航点坐标")
    private Q20RoutePointDTO point;

    @Schema(description = "执行高度(m)")
    @JsonProperty("execute_height")
    private float executeHeight;

    @Schema(description = "是否使用全局速度：0=不使用全局速度，1=使用全局速度")
    @JsonProperty("use_global_speed")
    private Integer useGlobalSpeed;

    @Schema(description = "航点飞行速度(m/s)，useGlobalSpeed=0时有效")
    @JsonProperty("waypoint_speed")
    private Float waypointSpeed;

    @Schema(description = "动作组")
    @JsonProperty("action_group")
    private Q20RouteActionGroupDTO actionGroup;
}
