Plane.Sdk3/PlaneGcsSdk.Contract_Shared/Messaging/RequestUpdateAttitudeMessage.cs

28 lines
837 B
C#
Raw Permalink Normal View History

2017-02-27 02:02:19 +08:00
namespace Plane.Messaging
{
public class RequestUpdateAttitudeMessage
{
public RequestUpdateAttitudeMessage(float rollDegrees, float pitchDegrees, float? yawDegrees)
{
this.RollDegrees = rollDegrees;
this.PitchDegrees = pitchDegrees;
this.YawDegrees = yawDegrees;
}
/// <summary>
/// 获取绕 X 轴的旋转(以度为单位)。
/// </summary>
public float PitchDegrees { get; }
/// <summary>
/// 获取绕 Y 轴的旋转(以度为单位)。
/// </summary>
public float RollDegrees { get; }
/// <summary>
/// 获取绕 Z 轴的旋转(以度为单位,正北 0正东 90范围为 [0, 360))。
/// </summary>
public float? YawDegrees { get; }
}
}