Esempio n. 1
0
 /// <summary>
 /// Copy constructor. Initializes a new instance of the <see cref="NcomPacket"/> class,
 /// logically equivalent to to the specified <paramref name="source"/>.
 /// </summary>
 /// <param name="source">
 /// The source <see cref="NcomPacket"/> with which to initialise this instance.
 /// </param>
 public NcomPacket(NcomPacket source)
 {
     if (source != null)
     {
         this.Checksum3        = source.Checksum3;
         this.NavigationStatus = source.NavigationStatus;
     }
 }
Esempio n. 2
0
        protected override bool IsEqual(NcomPacket _pkt)
        {
            NcomPacketA pkt = _pkt as NcomPacketA;

            return(base.IsEqual(pkt) &&
                   this.Time == pkt.Time &&
                   this.AccelerationX == pkt.AccelerationX &&
                   this.AccelerationY == pkt.AccelerationY &&
                   this.AccelerationZ == pkt.AccelerationZ &&
                   this.AngularRateX == pkt.AngularRateX &&
                   this.AngularRateY == pkt.AngularRateY &&
                   this.AngularRateZ == pkt.AngularRateZ &&
                   this.Latitude == pkt.Latitude &&
                   this.Longitude == pkt.Longitude &&
                   this.Altitude == pkt.Altitude &&
                   this.NorthVelocity == pkt.NorthVelocity &&
                   this.EastVelocity == pkt.EastVelocity &&
                   this.DownVelocity == pkt.DownVelocity &&
                   this.Heading == pkt.Heading &&
                   this.Pitch == pkt.Pitch &&
                   this.Roll == pkt.Roll &&
                   (this.StatusChannel == null ? pkt.StatusChannel == null : this.StatusChannel.Equals(pkt.StatusChannel)));
        }
Esempio n. 3
0
 protected virtual bool IsEqual(NcomPacket pkt)
 {
     return(this.NavigationStatus == pkt.NavigationStatus);
 }
Esempio n. 4
0
 protected override bool IsEqual(NcomPacket pkt)
 {
     return(base.IsEqual(pkt));
 }