public void Serialize(System.IO.BinaryWriter writer, MavLink4Net.Messages.IMessage message) { MavLink4Net.Messages.Common.ChangeOperatorControlAckMessage tMessage = message as MavLink4Net.Messages.Common.ChangeOperatorControlAckMessage; writer.Write(tMessage.GcsSystemId); writer.Write(tMessage.ControlRequest); writer.Write(tMessage.Ack); }
public MavLink4Net.Messages.IMessage Deserialize(System.IO.BinaryReader reader) { MavLink4Net.Messages.Common.ChangeOperatorControlAckMessage message = new MavLink4Net.Messages.Common.ChangeOperatorControlAckMessage(); message.GcsSystemId = reader.ReadByte(); message.ControlRequest = reader.ReadByte(); message.Ack = reader.ReadByte(); return(message); }