public void Serialize(System.IO.BinaryWriter writer, MavLink4Net.Messages.IMessage message)
 {
     MavLink4Net.Messages.Common.GpsStatusMessage tMessage = message as MavLink4Net.Messages.Common.GpsStatusMessage;
     writer.Write(tMessage.SatellitesVisible);
     writer.Write(tMessage.SatellitePrn[0]);
     writer.Write(tMessage.SatellitePrn[1]);
     writer.Write(tMessage.SatellitePrn[2]);
     writer.Write(tMessage.SatellitePrn[3]);
     writer.Write(tMessage.SatellitePrn[4]);
     writer.Write(tMessage.SatellitePrn[5]);
     writer.Write(tMessage.SatellitePrn[6]);
     writer.Write(tMessage.SatellitePrn[7]);
     writer.Write(tMessage.SatellitePrn[8]);
     writer.Write(tMessage.SatellitePrn[9]);
     writer.Write(tMessage.SatellitePrn[10]);
     writer.Write(tMessage.SatellitePrn[11]);
     writer.Write(tMessage.SatellitePrn[12]);
     writer.Write(tMessage.SatellitePrn[13]);
     writer.Write(tMessage.SatellitePrn[14]);
     writer.Write(tMessage.SatellitePrn[15]);
     writer.Write(tMessage.SatellitePrn[16]);
     writer.Write(tMessage.SatellitePrn[17]);
     writer.Write(tMessage.SatellitePrn[18]);
     writer.Write(tMessage.SatellitePrn[19]);
     writer.Write(tMessage.SatelliteUsed[0]);
     writer.Write(tMessage.SatelliteUsed[1]);
     writer.Write(tMessage.SatelliteUsed[2]);
     writer.Write(tMessage.SatelliteUsed[3]);
     writer.Write(tMessage.SatelliteUsed[4]);
     writer.Write(tMessage.SatelliteUsed[5]);
     writer.Write(tMessage.SatelliteUsed[6]);
     writer.Write(tMessage.SatelliteUsed[7]);
     writer.Write(tMessage.SatelliteUsed[8]);
     writer.Write(tMessage.SatelliteUsed[9]);
     writer.Write(tMessage.SatelliteUsed[10]);
     writer.Write(tMessage.SatelliteUsed[11]);
     writer.Write(tMessage.SatelliteUsed[12]);
     writer.Write(tMessage.SatelliteUsed[13]);
     writer.Write(tMessage.SatelliteUsed[14]);
     writer.Write(tMessage.SatelliteUsed[15]);
     writer.Write(tMessage.SatelliteUsed[16]);
     writer.Write(tMessage.SatelliteUsed[17]);
     writer.Write(tMessage.SatelliteUsed[18]);
     writer.Write(tMessage.SatelliteUsed[19]);
     writer.Write(tMessage.SatelliteElevation[0]);
     writer.Write(tMessage.SatelliteElevation[1]);
     writer.Write(tMessage.SatelliteElevation[2]);
     writer.Write(tMessage.SatelliteElevation[3]);
     writer.Write(tMessage.SatelliteElevation[4]);
     writer.Write(tMessage.SatelliteElevation[5]);
     writer.Write(tMessage.SatelliteElevation[6]);
     writer.Write(tMessage.SatelliteElevation[7]);
     writer.Write(tMessage.SatelliteElevation[8]);
     writer.Write(tMessage.SatelliteElevation[9]);
     writer.Write(tMessage.SatelliteElevation[10]);
     writer.Write(tMessage.SatelliteElevation[11]);
     writer.Write(tMessage.SatelliteElevation[12]);
     writer.Write(tMessage.SatelliteElevation[13]);
     writer.Write(tMessage.SatelliteElevation[14]);
     writer.Write(tMessage.SatelliteElevation[15]);
     writer.Write(tMessage.SatelliteElevation[16]);
     writer.Write(tMessage.SatelliteElevation[17]);
     writer.Write(tMessage.SatelliteElevation[18]);
     writer.Write(tMessage.SatelliteElevation[19]);
     writer.Write(tMessage.SatelliteAzimuth[0]);
     writer.Write(tMessage.SatelliteAzimuth[1]);
     writer.Write(tMessage.SatelliteAzimuth[2]);
     writer.Write(tMessage.SatelliteAzimuth[3]);
     writer.Write(tMessage.SatelliteAzimuth[4]);
     writer.Write(tMessage.SatelliteAzimuth[5]);
     writer.Write(tMessage.SatelliteAzimuth[6]);
     writer.Write(tMessage.SatelliteAzimuth[7]);
     writer.Write(tMessage.SatelliteAzimuth[8]);
     writer.Write(tMessage.SatelliteAzimuth[9]);
     writer.Write(tMessage.SatelliteAzimuth[10]);
     writer.Write(tMessage.SatelliteAzimuth[11]);
     writer.Write(tMessage.SatelliteAzimuth[12]);
     writer.Write(tMessage.SatelliteAzimuth[13]);
     writer.Write(tMessage.SatelliteAzimuth[14]);
     writer.Write(tMessage.SatelliteAzimuth[15]);
     writer.Write(tMessage.SatelliteAzimuth[16]);
     writer.Write(tMessage.SatelliteAzimuth[17]);
     writer.Write(tMessage.SatelliteAzimuth[18]);
     writer.Write(tMessage.SatelliteAzimuth[19]);
     writer.Write(tMessage.SatelliteSnr[0]);
     writer.Write(tMessage.SatelliteSnr[1]);
     writer.Write(tMessage.SatelliteSnr[2]);
     writer.Write(tMessage.SatelliteSnr[3]);
     writer.Write(tMessage.SatelliteSnr[4]);
     writer.Write(tMessage.SatelliteSnr[5]);
     writer.Write(tMessage.SatelliteSnr[6]);
     writer.Write(tMessage.SatelliteSnr[7]);
     writer.Write(tMessage.SatelliteSnr[8]);
     writer.Write(tMessage.SatelliteSnr[9]);
     writer.Write(tMessage.SatelliteSnr[10]);
     writer.Write(tMessage.SatelliteSnr[11]);
     writer.Write(tMessage.SatelliteSnr[12]);
     writer.Write(tMessage.SatelliteSnr[13]);
     writer.Write(tMessage.SatelliteSnr[14]);
     writer.Write(tMessage.SatelliteSnr[15]);
     writer.Write(tMessage.SatelliteSnr[16]);
     writer.Write(tMessage.SatelliteSnr[17]);
     writer.Write(tMessage.SatelliteSnr[18]);
     writer.Write(tMessage.SatelliteSnr[19]);
 }
 public MavLink4Net.Messages.IMessage Deserialize(System.IO.BinaryReader reader)
 {
     MavLink4Net.Messages.Common.GpsStatusMessage message = new MavLink4Net.Messages.Common.GpsStatusMessage();
     message.SatellitesVisible      = reader.ReadByte();
     message.SatellitePrn[0]        = reader.ReadByte();
     message.SatellitePrn[1]        = reader.ReadByte();
     message.SatellitePrn[2]        = reader.ReadByte();
     message.SatellitePrn[3]        = reader.ReadByte();
     message.SatellitePrn[4]        = reader.ReadByte();
     message.SatellitePrn[5]        = reader.ReadByte();
     message.SatellitePrn[6]        = reader.ReadByte();
     message.SatellitePrn[7]        = reader.ReadByte();
     message.SatellitePrn[8]        = reader.ReadByte();
     message.SatellitePrn[9]        = reader.ReadByte();
     message.SatellitePrn[10]       = reader.ReadByte();
     message.SatellitePrn[11]       = reader.ReadByte();
     message.SatellitePrn[12]       = reader.ReadByte();
     message.SatellitePrn[13]       = reader.ReadByte();
     message.SatellitePrn[14]       = reader.ReadByte();
     message.SatellitePrn[15]       = reader.ReadByte();
     message.SatellitePrn[16]       = reader.ReadByte();
     message.SatellitePrn[17]       = reader.ReadByte();
     message.SatellitePrn[18]       = reader.ReadByte();
     message.SatellitePrn[19]       = reader.ReadByte();
     message.SatelliteUsed[0]       = reader.ReadByte();
     message.SatelliteUsed[1]       = reader.ReadByte();
     message.SatelliteUsed[2]       = reader.ReadByte();
     message.SatelliteUsed[3]       = reader.ReadByte();
     message.SatelliteUsed[4]       = reader.ReadByte();
     message.SatelliteUsed[5]       = reader.ReadByte();
     message.SatelliteUsed[6]       = reader.ReadByte();
     message.SatelliteUsed[7]       = reader.ReadByte();
     message.SatelliteUsed[8]       = reader.ReadByte();
     message.SatelliteUsed[9]       = reader.ReadByte();
     message.SatelliteUsed[10]      = reader.ReadByte();
     message.SatelliteUsed[11]      = reader.ReadByte();
     message.SatelliteUsed[12]      = reader.ReadByte();
     message.SatelliteUsed[13]      = reader.ReadByte();
     message.SatelliteUsed[14]      = reader.ReadByte();
     message.SatelliteUsed[15]      = reader.ReadByte();
     message.SatelliteUsed[16]      = reader.ReadByte();
     message.SatelliteUsed[17]      = reader.ReadByte();
     message.SatelliteUsed[18]      = reader.ReadByte();
     message.SatelliteUsed[19]      = reader.ReadByte();
     message.SatelliteElevation[0]  = reader.ReadByte();
     message.SatelliteElevation[1]  = reader.ReadByte();
     message.SatelliteElevation[2]  = reader.ReadByte();
     message.SatelliteElevation[3]  = reader.ReadByte();
     message.SatelliteElevation[4]  = reader.ReadByte();
     message.SatelliteElevation[5]  = reader.ReadByte();
     message.SatelliteElevation[6]  = reader.ReadByte();
     message.SatelliteElevation[7]  = reader.ReadByte();
     message.SatelliteElevation[8]  = reader.ReadByte();
     message.SatelliteElevation[9]  = reader.ReadByte();
     message.SatelliteElevation[10] = reader.ReadByte();
     message.SatelliteElevation[11] = reader.ReadByte();
     message.SatelliteElevation[12] = reader.ReadByte();
     message.SatelliteElevation[13] = reader.ReadByte();
     message.SatelliteElevation[14] = reader.ReadByte();
     message.SatelliteElevation[15] = reader.ReadByte();
     message.SatelliteElevation[16] = reader.ReadByte();
     message.SatelliteElevation[17] = reader.ReadByte();
     message.SatelliteElevation[18] = reader.ReadByte();
     message.SatelliteElevation[19] = reader.ReadByte();
     message.SatelliteAzimuth[0]    = reader.ReadByte();
     message.SatelliteAzimuth[1]    = reader.ReadByte();
     message.SatelliteAzimuth[2]    = reader.ReadByte();
     message.SatelliteAzimuth[3]    = reader.ReadByte();
     message.SatelliteAzimuth[4]    = reader.ReadByte();
     message.SatelliteAzimuth[5]    = reader.ReadByte();
     message.SatelliteAzimuth[6]    = reader.ReadByte();
     message.SatelliteAzimuth[7]    = reader.ReadByte();
     message.SatelliteAzimuth[8]    = reader.ReadByte();
     message.SatelliteAzimuth[9]    = reader.ReadByte();
     message.SatelliteAzimuth[10]   = reader.ReadByte();
     message.SatelliteAzimuth[11]   = reader.ReadByte();
     message.SatelliteAzimuth[12]   = reader.ReadByte();
     message.SatelliteAzimuth[13]   = reader.ReadByte();
     message.SatelliteAzimuth[14]   = reader.ReadByte();
     message.SatelliteAzimuth[15]   = reader.ReadByte();
     message.SatelliteAzimuth[16]   = reader.ReadByte();
     message.SatelliteAzimuth[17]   = reader.ReadByte();
     message.SatelliteAzimuth[18]   = reader.ReadByte();
     message.SatelliteAzimuth[19]   = reader.ReadByte();
     message.SatelliteSnr[0]        = reader.ReadByte();
     message.SatelliteSnr[1]        = reader.ReadByte();
     message.SatelliteSnr[2]        = reader.ReadByte();
     message.SatelliteSnr[3]        = reader.ReadByte();
     message.SatelliteSnr[4]        = reader.ReadByte();
     message.SatelliteSnr[5]        = reader.ReadByte();
     message.SatelliteSnr[6]        = reader.ReadByte();
     message.SatelliteSnr[7]        = reader.ReadByte();
     message.SatelliteSnr[8]        = reader.ReadByte();
     message.SatelliteSnr[9]        = reader.ReadByte();
     message.SatelliteSnr[10]       = reader.ReadByte();
     message.SatelliteSnr[11]       = reader.ReadByte();
     message.SatelliteSnr[12]       = reader.ReadByte();
     message.SatelliteSnr[13]       = reader.ReadByte();
     message.SatelliteSnr[14]       = reader.ReadByte();
     message.SatelliteSnr[15]       = reader.ReadByte();
     message.SatelliteSnr[16]       = reader.ReadByte();
     message.SatelliteSnr[17]       = reader.ReadByte();
     message.SatelliteSnr[18]       = reader.ReadByte();
     message.SatelliteSnr[19]       = reader.ReadByte();
     return(message);
 }