public MavLink4Net.Messages.IMessage Deserialize(System.IO.BinaryReader reader) { MavLink4Net.Messages.Common.ChangeOperatorControlMessage message = new MavLink4Net.Messages.Common.ChangeOperatorControlMessage(); message.TargetSystem = reader.ReadByte(); message.ControlRequest = reader.ReadByte(); message.Version = reader.ReadByte(); message.Passkey[0] = reader.ReadChar(); message.Passkey[1] = reader.ReadChar(); message.Passkey[2] = reader.ReadChar(); message.Passkey[3] = reader.ReadChar(); message.Passkey[4] = reader.ReadChar(); message.Passkey[5] = reader.ReadChar(); message.Passkey[6] = reader.ReadChar(); message.Passkey[7] = reader.ReadChar(); message.Passkey[8] = reader.ReadChar(); message.Passkey[9] = reader.ReadChar(); message.Passkey[10] = reader.ReadChar(); message.Passkey[11] = reader.ReadChar(); message.Passkey[12] = reader.ReadChar(); message.Passkey[13] = reader.ReadChar(); message.Passkey[14] = reader.ReadChar(); message.Passkey[15] = reader.ReadChar(); message.Passkey[16] = reader.ReadChar(); message.Passkey[17] = reader.ReadChar(); message.Passkey[18] = reader.ReadChar(); message.Passkey[19] = reader.ReadChar(); message.Passkey[20] = reader.ReadChar(); message.Passkey[21] = reader.ReadChar(); message.Passkey[22] = reader.ReadChar(); message.Passkey[23] = reader.ReadChar(); message.Passkey[24] = reader.ReadChar(); return(message); }
public void Serialize(System.IO.BinaryWriter writer, MavLink4Net.Messages.IMessage message) { MavLink4Net.Messages.Common.ChangeOperatorControlMessage tMessage = message as MavLink4Net.Messages.Common.ChangeOperatorControlMessage; writer.Write(tMessage.TargetSystem); writer.Write(tMessage.ControlRequest); writer.Write(tMessage.Version); writer.Write(tMessage.Passkey[0]); writer.Write(tMessage.Passkey[1]); writer.Write(tMessage.Passkey[2]); writer.Write(tMessage.Passkey[3]); writer.Write(tMessage.Passkey[4]); writer.Write(tMessage.Passkey[5]); writer.Write(tMessage.Passkey[6]); writer.Write(tMessage.Passkey[7]); writer.Write(tMessage.Passkey[8]); writer.Write(tMessage.Passkey[9]); writer.Write(tMessage.Passkey[10]); writer.Write(tMessage.Passkey[11]); writer.Write(tMessage.Passkey[12]); writer.Write(tMessage.Passkey[13]); writer.Write(tMessage.Passkey[14]); writer.Write(tMessage.Passkey[15]); writer.Write(tMessage.Passkey[16]); writer.Write(tMessage.Passkey[17]); writer.Write(tMessage.Passkey[18]); writer.Write(tMessage.Passkey[19]); writer.Write(tMessage.Passkey[20]); writer.Write(tMessage.Passkey[21]); writer.Write(tMessage.Passkey[22]); writer.Write(tMessage.Passkey[23]); writer.Write(tMessage.Passkey[24]); }