/// <summary> /// 从报文提取 自适应状态 /// </summary> /// <param name="packet">报文</param> /// <returns>自适应状态</returns> public static Models.Feedback.AdaptiveState ToAdaptiveState(byte[] packet) { var data = packet.PacketData(1).ToArray(); var model = new Models.Feedback.AdaptiveState(); model.ShortCorrection = ValueConvert.ConvetToSbyteSafe(data[0]); model.Offset = ValueConvert.ConvetToSbyteSafe(data[1]); return(model); }