Ejemplo n.º 1
0
 public void MergeFrom(MsfStatus other)
 {
     if (other == null)
     {
         return;
     }
     if (other.LocalLidarConsistency != 0)
     {
         LocalLidarConsistency = other.LocalLidarConsistency;
     }
     if (other.GnssConsistency != 0)
     {
         GnssConsistency = other.GnssConsistency;
     }
     if (other.LocalLidarStatus != 0)
     {
         LocalLidarStatus = other.LocalLidarStatus;
     }
     if (other.LocalLidarQuality != 0)
     {
         LocalLidarQuality = other.LocalLidarQuality;
     }
     if (other.GnssposPositionType != 0)
     {
         GnssposPositionType = other.GnssposPositionType;
     }
     if (other.MsfRunningStatus != 0)
     {
         MsfRunningStatus = other.MsfRunningStatus;
     }
 }
Ejemplo n.º 2
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    input.SkipLastField();
                    break;

                case 8: {
                    localLidarConsistency_ = (global::Apollo.Localization.LocalLidarConsistency)input.ReadEnum();
                    break;
                }

                case 16: {
                    gnssConsistency_ = (global::Apollo.Localization.GnssConsistency)input.ReadEnum();
                    break;
                }

                case 24: {
                    localLidarStatus_ = (global::Apollo.Localization.LocalLidarStatus)input.ReadEnum();
                    break;
                }

                case 32: {
                    localLidarQuality_ = (global::Apollo.Localization.LocalLidarQuality)input.ReadEnum();
                    break;
                }

                case 40: {
                    gnssposPositionType_ = (global::Apollo.Localization.GnssPositionType)input.ReadEnum();
                    break;
                }

                case 48: {
                    msfRunningStatus_ = (global::Apollo.Localization.MsfRunningStatus)input.ReadEnum();
                    break;
                }
                }
            }
        }