$search
00001 """autogenerated by genmsg_py from NavSVINFO_SV.msg. Do not edit.""" 00002 import roslib.message 00003 import struct 00004 00005 00006 class NavSVINFO_SV(roslib.message.Message): 00007 _md5sum = "b29c45854d86b34347aac679c246b6c7" 00008 _type = "ublox_msgs/NavSVINFO_SV" 00009 _has_header = False #flag to mark the presence of a Header object 00010 _full_text = """# see message NavSVINFO 00011 # 00012 00013 uint8 chn # Channel number, 255 for SVs not assigned to a channel 00014 uint8 svid # Satellite ID 00015 00016 uint8 flags # Bitmask 00017 uint8 FLAGS_SVUSED = 1 # SV is used for navigation 00018 uint8 FLAGS_DIFFCORR = 2 # Differential correction data is available for this SV 00019 uint8 FLAGS_ORBITAVAIL = 4 # Orbit information is available for this SV (Ephemeris or Almanach) 00020 uint8 FLAGS_ORBITEPH = 8 # Orbit information is Ephemeris 00021 uint8 FLAGS_UNHEALTHY = 16 # SV is unhealthy / shall not be used 00022 uint8 FLAGS_ORBIT_ALM = 32 # Orbit information is Almanac Plus 00023 uint8 FLAGS_ORBIT_AOP = 64 # Orbit information is AssistNow Autonomous 00024 uint8 FLAGS_SMOOTHED = 128 # Carrier smoothed pseudorange used 00025 00026 uint8 quality # Bitfield 00027 # qualityInd: Signal Quality indicator (range 0..7). The following list shows the meaning of the different QI values: 00028 uint8 QUALITY_IDLE = 0 # This channel is idle 00029 uint8 QUALITY_SEARCHING = 1 # Channel is searching 00030 uint8 QUALITY_AQUIRED = 2 # Signal aquired 00031 uint8 QUALITY_DETECTED = 3 # Signal detected but unusable 00032 uint8 QUALITY_CODE_LOCK = 4 # Code Lock on Signal 00033 uint8 QUALITY_CODE_AND_CARRIER_LOCKED1 = 5 # Code and Carrier locked 00034 uint8 QUALITY_CODE_AND_CARRIER_LOCKED2 = 6 # Code and Carrier locked 00035 uint8 QUALITY_CODE_AND_CARRIER_LOCKED3 = 7 # Code and Carrier locked 00036 00037 uint8 cno # Carrier to Noise Ratio (Signal Strength) [dbHz] 00038 int8 elev # Elevation in integer degrees [deg] 00039 int16 azim # Azimuth in integer degrees [deg] 00040 int32 prRes # Pseudo range residual in centimetres [cm] 00041 00042 """ 00043 # Pseudo-constants 00044 FLAGS_SVUSED = 1 00045 FLAGS_DIFFCORR = 2 00046 FLAGS_ORBITAVAIL = 4 00047 FLAGS_ORBITEPH = 8 00048 FLAGS_UNHEALTHY = 16 00049 FLAGS_ORBIT_ALM = 32 00050 FLAGS_ORBIT_AOP = 64 00051 FLAGS_SMOOTHED = 128 00052 QUALITY_IDLE = 0 00053 QUALITY_SEARCHING = 1 00054 QUALITY_AQUIRED = 2 00055 QUALITY_DETECTED = 3 00056 QUALITY_CODE_LOCK = 4 00057 QUALITY_CODE_AND_CARRIER_LOCKED1 = 5 00058 QUALITY_CODE_AND_CARRIER_LOCKED2 = 6 00059 QUALITY_CODE_AND_CARRIER_LOCKED3 = 7 00060 00061 __slots__ = ['chn','svid','flags','quality','cno','elev','azim','prRes'] 00062 _slot_types = ['uint8','uint8','uint8','uint8','uint8','int8','int16','int32'] 00063 00064 def __init__(self, *args, **kwds): 00065 """ 00066 Constructor. Any message fields that are implicitly/explicitly 00067 set to None will be assigned a default value. The recommend 00068 use is keyword arguments as this is more robust to future message 00069 changes. You cannot mix in-order arguments and keyword arguments. 00070 00071 The available fields are: 00072 chn,svid,flags,quality,cno,elev,azim,prRes 00073 00074 @param args: complete set of field values, in .msg order 00075 @param kwds: use keyword arguments corresponding to message field names 00076 to set specific fields. 00077 """ 00078 if args or kwds: 00079 super(NavSVINFO_SV, self).__init__(*args, **kwds) 00080 #message fields cannot be None, assign default values for those that are 00081 if self.chn is None: 00082 self.chn = 0 00083 if self.svid is None: 00084 self.svid = 0 00085 if self.flags is None: 00086 self.flags = 0 00087 if self.quality is None: 00088 self.quality = 0 00089 if self.cno is None: 00090 self.cno = 0 00091 if self.elev is None: 00092 self.elev = 0 00093 if self.azim is None: 00094 self.azim = 0 00095 if self.prRes is None: 00096 self.prRes = 0 00097 else: 00098 self.chn = 0 00099 self.svid = 0 00100 self.flags = 0 00101 self.quality = 0 00102 self.cno = 0 00103 self.elev = 0 00104 self.azim = 0 00105 self.prRes = 0 00106 00107 def _get_types(self): 00108 """ 00109 internal API method 00110 """ 00111 return self._slot_types 00112 00113 def serialize(self, buff): 00114 """ 00115 serialize message into buffer 00116 @param buff: buffer 00117 @type buff: StringIO 00118 """ 00119 try: 00120 _x = self 00121 buff.write(_struct_5Bbhi.pack(_x.chn, _x.svid, _x.flags, _x.quality, _x.cno, _x.elev, _x.azim, _x.prRes)) 00122 except struct.error as se: self._check_types(se) 00123 except TypeError as te: self._check_types(te) 00124 00125 def deserialize(self, str): 00126 """ 00127 unpack serialized message in str into this message instance 00128 @param str: byte array of serialized message 00129 @type str: str 00130 """ 00131 try: 00132 end = 0 00133 _x = self 00134 start = end 00135 end += 12 00136 (_x.chn, _x.svid, _x.flags, _x.quality, _x.cno, _x.elev, _x.azim, _x.prRes,) = _struct_5Bbhi.unpack(str[start:end]) 00137 return self 00138 except struct.error as e: 00139 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00140 00141 00142 def serialize_numpy(self, buff, numpy): 00143 """ 00144 serialize message with numpy array types into buffer 00145 @param buff: buffer 00146 @type buff: StringIO 00147 @param numpy: numpy python module 00148 @type numpy module 00149 """ 00150 try: 00151 _x = self 00152 buff.write(_struct_5Bbhi.pack(_x.chn, _x.svid, _x.flags, _x.quality, _x.cno, _x.elev, _x.azim, _x.prRes)) 00153 except struct.error as se: self._check_types(se) 00154 except TypeError as te: self._check_types(te) 00155 00156 def deserialize_numpy(self, str, numpy): 00157 """ 00158 unpack serialized message in str into this message instance using numpy for array types 00159 @param str: byte array of serialized message 00160 @type str: str 00161 @param numpy: numpy python module 00162 @type numpy: module 00163 """ 00164 try: 00165 end = 0 00166 _x = self 00167 start = end 00168 end += 12 00169 (_x.chn, _x.svid, _x.flags, _x.quality, _x.cno, _x.elev, _x.azim, _x.prRes,) = _struct_5Bbhi.unpack(str[start:end]) 00170 return self 00171 except struct.error as e: 00172 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00173 00174 _struct_I = roslib.message.struct_I 00175 _struct_5Bbhi = struct.Struct("<5Bbhi")