using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Shaker.Model
{
///
/// fifo中数据定义
///
public enum ResultChannelType
{
///
/// 实际位移(mm)
///
[ResultChannelUnitAttribute("mm")]
[Description("ResultChannelTypActualDisplacement")]
ActualDisplacement,
///
/// 给定位移(mm)
///
[ResultChannelUnitAttribute("mm")]
[Description("ResultChannelTypeGivenDisplacement")]
GivenDisplacement,
///
/// 水平缸驱动(V)
///
[ResultChannelUnitAttribute("V")]
[Description("ResultChannelTypeHorizontalCylinderDrive")]
HorizontalCylinderDrive,
///
/// 竖直缸驱动(V)
///
[ResultChannelUnitAttribute("V")]
[Description("ResultChannelTypeVerticalCylinderDrive")]
VerticalCylinderDrive,
///
/// 平衡缸驱动(V)
///
[ResultChannelUnitAttribute("V")]
[Description("ResultChannelTypeBalanceCylinderDrive")]
BalanceCylinderDrive,
///
/// 压差(MPa)
///
[ResultChannelUnitAttribute("MPa")]
[Description("ResultChannelTypeDifferentialPressure")]
DifferentialPressure,
///
/// 支撑压力(MPa)
///
[ResultChannelUnitAttribute("MPa")]
[Description("ResultChannelTypeSupportingPressure")]
SupportingPressure,
///
/// 六自由度给定位移(mm)
///
[ResultChannelUnitAttribute("mm")]
[Description("ResultChannelTypeSixFreedomsGivenDisplacement")]
SixFreedomsGivenDisplacement,
///
/// 当前位置/自由度正解(mm)
///
[ResultChannelUnitAttribute("mm")]
[Description("ResultChannelTypeCurrentLocation")]
CurrentLocation,
///
/// 加速度(g)
///
[ResultChannelUnitAttribute("g")]
[Description("ResultChannelTypeAcceleration")]
Acceleration,
///
/// 外部输入(V)
///
[ResultChannelUnitAttribute("V")]
[Description("ResultChannelTypeExternalInput")]
ExternalInput,
///
/// 未使用
///
[ResultChannelUnitAttribute("")]
[Description("ResultChannelTypeNone")]
None,
}
[AttributeUsage(AttributeTargets.Field)]
public sealed class ResultChannelUnitAttribute : Attribute
{
public ResultChannelUnitAttribute(string unit)=>Unit = unit;
public string Unit { get; }
}
}