Exemplo n.º 1
0
 public void Serialize(System.IO.BinaryWriter writer, MavLink4Net.Messages.IMessage message)
 {
     MavLink4Net.Messages.Common.PowerStatusMessage tMessage = message as MavLink4Net.Messages.Common.PowerStatusMessage;
     writer.Write(tMessage.Vcc);
     writer.Write(tMessage.Vservo);
     writer.Write(((ushort)(tMessage.Flags)));
 }
Exemplo n.º 2
0
 public MavLink4Net.Messages.IMessage Deserialize(System.IO.BinaryReader reader)
 {
     MavLink4Net.Messages.Common.PowerStatusMessage message = new MavLink4Net.Messages.Common.PowerStatusMessage();
     message.Vcc    = reader.ReadUInt16();
     message.Vservo = reader.ReadUInt16();
     message.Flags  = ((MavLink4Net.Messages.Common.PowerStatus)(reader.ReadUInt16()));
     return(message);
 }