public void Serialize(System.IO.BinaryWriter writer, MavLink4Net.Messages.IMessage message)
 {
     MavLink4Net.Messages.Common.AltitudeMessage tMessage = message as MavLink4Net.Messages.Common.AltitudeMessage;
     writer.Write(tMessage.TimeUsec);
     writer.Write(tMessage.AltitudeMonotonic);
     writer.Write(tMessage.AltitudeAmsl);
     writer.Write(tMessage.AltitudeLocal);
     writer.Write(tMessage.AltitudeRelative);
     writer.Write(tMessage.AltitudeTerrain);
     writer.Write(tMessage.BottomClearance);
 }
 public MavLink4Net.Messages.IMessage Deserialize(System.IO.BinaryReader reader)
 {
     MavLink4Net.Messages.Common.AltitudeMessage message = new MavLink4Net.Messages.Common.AltitudeMessage();
     message.TimeUsec          = reader.ReadUInt64();
     message.AltitudeMonotonic = reader.ReadSingle();
     message.AltitudeAmsl      = reader.ReadSingle();
     message.AltitudeLocal     = reader.ReadSingle();
     message.AltitudeRelative  = reader.ReadSingle();
     message.AltitudeTerrain   = reader.ReadSingle();
     message.BottomClearance   = reader.ReadSingle();
     return(message);
 }