using System; using System.Collections.Generic; using System.Text; using JTNE.Protocol.Attributes; using JTNE.Protocol.Formatters.MessageBodyFormatters; using JTNE.Protocol.Metadata; namespace JTNE.Protocol.MessageBody { /// /// 发动机数据 /// [JTNEFormatter(typeof(JTNE_0x02_0x04_Formatter))] public class JTNE_0x02_0x04 : JTNE_0x02_Body { public override byte TypeCode { get; set; } = JTNE_0x02_0x04; /// /// 发动机状态 /// 0x01:启动状态 /// 0x02:关闭状态 /// 0xFE:异常 /// 0xFF:无效 /// public byte EngineStatus { get; set; } /// /// 曲轴转速 /// 有效范围:0-60000(表示0 r/min-60000 r/min) /// 最小计量单元:1 r/min /// 异常:0xFF,0XFE /// 无效:0xFF,0xFF /// public ushort Revs { get; set; } /// /// 燃料消耗率 /// 有效值范围:0-60000(表示0L/100km - 600L/100km) /// 最小计量单元:0.01L/km /// 异常:0xFF,0XFE /// 无效:0xFF,0xFF /// public ushort FuelRate { get; set; } } }