public void Serialize(System.IO.BinaryWriter writer, MavLink4Net.Messages.IMessage message) { MavLink4Net.Messages.Common.NavControllerOutputMessage tMessage = message as MavLink4Net.Messages.Common.NavControllerOutputMessage; writer.Write(tMessage.NavRoll); writer.Write(tMessage.NavPitch); writer.Write(tMessage.AltError); writer.Write(tMessage.AspdError); writer.Write(tMessage.XtrackError); writer.Write(tMessage.NavBearing); writer.Write(tMessage.TargetBearing); writer.Write(tMessage.WpDist); }
public MavLink4Net.Messages.IMessage Deserialize(System.IO.BinaryReader reader) { MavLink4Net.Messages.Common.NavControllerOutputMessage message = new MavLink4Net.Messages.Common.NavControllerOutputMessage(); message.NavRoll = reader.ReadSingle(); message.NavPitch = reader.ReadSingle(); message.AltError = reader.ReadSingle(); message.AspdError = reader.ReadSingle(); message.XtrackError = reader.ReadSingle(); message.NavBearing = reader.ReadInt16(); message.TargetBearing = reader.ReadInt16(); message.WpDist = reader.ReadUInt16(); return(message); }