package com.imdroid.sideslope.bd;

import lombok.Data;

/**
 * 描述杆的倾斜
 */
@Data
public class Tilt {

    /**
     * 前后仰角 上仰为正0-360
     */
    private double pitch;

    /**
     * 左右倾斜角 右下为正0-360
     */
    private double roll;

    /**
     * 航向角 北偏东为正0-360
     */
    private double yaw;

    /**
     * 偏移量
     */
    private double shock;

    public Tilt(double pitch, double roll, double yaw,double shock) {
        this.pitch = pitch;
        this.roll = roll;
        this.yaw = yaw;
        this.shock = shock;
    }
    public Tilt(double pitch, double roll, double yaw) {
        this.pitch = pitch;
        this.roll = roll;
        this.yaw = yaw;
    }

    @Override
    public String toString() {
        return "Tilt{" +
                "pitch=" + pitch +
                ", roll=" + roll +
                ", yaw=" + yaw +", shock:"+shock+
                '}';
    }
}

