Beispiel #1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (ReceiverId != 0)
            {
                hash ^= ReceiverId.GetHashCode();
            }
            if (TimeType != 0)
            {
                hash ^= TimeType.GetHashCode();
            }
            if (GnssWeek != 0)
            {
                hash ^= GnssWeek.GetHashCode();
            }
            if (GnssSecondS != 0D)
            {
                hash ^= GnssSecondS.GetHashCode();
            }
            if (PntType != 0)
            {
                hash ^= PntType.GetHashCode();
            }
            if (PosXM != 0D)
            {
                hash ^= PosXM.GetHashCode();
            }
            if (PosYM != 0D)
            {
                hash ^= PosYM.GetHashCode();
            }
            if (PosZM != 0D)
            {
                hash ^= PosZM.GetHashCode();
            }
            if (StdPosXM != 0D)
            {
                hash ^= StdPosXM.GetHashCode();
            }
            if (StdPosYM != 0D)
            {
                hash ^= StdPosYM.GetHashCode();
            }
            if (StdPosZM != 0D)
            {
                hash ^= StdPosZM.GetHashCode();
            }
            if (VelXM != 0D)
            {
                hash ^= VelXM.GetHashCode();
            }
            if (VelYM != 0D)
            {
                hash ^= VelYM.GetHashCode();
            }
            if (VelZM != 0D)
            {
                hash ^= VelZM.GetHashCode();
            }
            if (StdVelXM != 0D)
            {
                hash ^= StdVelXM.GetHashCode();
            }
            if (StdVelYM != 0D)
            {
                hash ^= StdVelYM.GetHashCode();
            }
            if (StdVelZM != 0D)
            {
                hash ^= StdVelZM.GetHashCode();
            }
            if (SovledSatNum != 0)
            {
                hash ^= SovledSatNum.GetHashCode();
            }
            hash ^= satDirCosine_.GetHashCode();
            if (Pdop != 0D)
            {
                hash ^= Pdop.GetHashCode();
            }
            if (Hdop != 0D)
            {
                hash ^= Hdop.GetHashCode();
            }
            if (Vdop != 0D)
            {
                hash ^= Vdop.GetHashCode();
            }
            return(hash);
        }
        public List <Parameter> GetListParam()
        {
            SetBaseParam();

            Parameter p;

            p = TimestampToDate(Packet_Time);
            List.Add(p);

            p = new Parameter {
                Param = "", Value = "DATA:"
            };
            List.Add(p);

            p = new Parameter {
                Param = "Version packet", Value = VerPack.ToString()
            };
            List.Add(p);

            p = new Parameter {
                Param = "Latitude", Value = Latitude.ToString()
            };
            List.Add(p);

            p = new Parameter {
                Param = "Longitude", Value = Longitude.ToString()
            };
            List.Add(p);

            p = new Parameter {
                Param = "Altitude", Value = Altitude.ToString()
            };
            List.Add(p);

            p = new Parameter {
                Param = "FIX", Value = String.Format("{0}", Convert.ToChar(Fix))
            };
            List.Add(p);

            p = new Parameter {
                Param = "HDOP", Value = Hdop.ToString()
            };
            List.Add(p);

            p = new Parameter {
                Param = "Num", Value = (Num & 0x7F).ToString()
            };
            List.Add(p);

            p = new Parameter {
                Param = "PLMN", Value = PLMN.ToString("X")
            };
            List.Add(p);

            int k = 1;

            foreach (CellInfo ci in cellInfo)
            {
                p = new Parameter {
                    Param = "Cell_" + k.ToString()
                };
                p.Value  = "LAC = " + ci.LAC.ToString("X");
                p.Value += " CELL_ID = " + ci.CELL_ID.ToString("X");
                p.Value += " RSSI = " + ci.RSSI.ToString();
                List.Add(p);

                k++;
            }

            p = GetCCID(ref CCID);
            List.Add(p);

            return(List);
        }