Plane.Sdk3/PlaneGcsSdk.Contract_Shared/Messaging/RequestUpdateAttitudeMessage.cs
2017-02-27 02:02:19 +08:00

28 lines
837 B
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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; }
}
}