package com.djhk.uav.uav.model.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @description 无人机姿态消息实体
 * @author jiachengshuai
 * @date 2022/11/11 15:23:04
 * @version 1.0
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@JsonInclude(JsonInclude.Include.NON_NULL)
public class DevicePoseDTO
{
    private Long uavInfoId;

    private String uavNum;

    private String flightPlanNo;

    private Double lng;

    private Double lat;

    private Double height;

    private Double speed;

    private Double velocityZ;

    private Double tilt;

    private Double pan;

    /** 飞行距离 */
    private Double distance;

    /** GPS时刻 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date gpsTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    private DevicePoseDTO last;
}
