_RxmRAW_SV.py
Go to the documentation of this file.
00001 """autogenerated by genpy from ublox_msgs/RxmRAW_SV.msg. Do not edit."""
00002 import sys
00003 python3 = True if sys.hexversion > 0x03000000 else False
00004 import genpy
00005 import struct
00006 
00007 
00008 class RxmRAW_SV(genpy.Message):
00009   _md5sum = "4b32efd29577416a2c280e629abcb69a"
00010   _type = "ublox_msgs/RxmRAW_SV"
00011   _has_header = False #flag to mark the presence of a Header object
00012   _full_text = """# see message RxmRAW
00013 #
00014 
00015 float64 cpMes             # Carrier phase measurement [L1 cycles]
00016 float64 prMes             # Pseudorange measurement [m]
00017 float32 doMes             # Doppler measurement [Hz]
00018 
00019 uint8 sv                  # Space Vehicle Number
00020 int8 mesQI                # Nav Measurements Quality Indicator
00021                           #  >=4 : PR+DO OK
00022                           #  >=5 : PR+DO+CP OK
00023                           #  <6 : likely loss of carrier lock in previous interval
00024 int8 cno                  # Signal strength C/No. [dbHz]
00025 uint8 lli                 # Loss of lock indicator (RINEX definition)
00026 
00027 """
00028   __slots__ = ['cpMes','prMes','doMes','sv','mesQI','cno','lli']
00029   _slot_types = ['float64','float64','float32','uint8','int8','int8','uint8']
00030 
00031   def __init__(self, *args, **kwds):
00032     """
00033     Constructor. Any message fields that are implicitly/explicitly
00034     set to None will be assigned a default value. The recommend
00035     use is keyword arguments as this is more robust to future message
00036     changes.  You cannot mix in-order arguments and keyword arguments.
00037 
00038     The available fields are:
00039        cpMes,prMes,doMes,sv,mesQI,cno,lli
00040 
00041     :param args: complete set of field values, in .msg order
00042     :param kwds: use keyword arguments corresponding to message field names
00043     to set specific fields.
00044     """
00045     if args or kwds:
00046       super(RxmRAW_SV, self).__init__(*args, **kwds)
00047       #message fields cannot be None, assign default values for those that are
00048       if self.cpMes is None:
00049         self.cpMes = 0.
00050       if self.prMes is None:
00051         self.prMes = 0.
00052       if self.doMes is None:
00053         self.doMes = 0.
00054       if self.sv is None:
00055         self.sv = 0
00056       if self.mesQI is None:
00057         self.mesQI = 0
00058       if self.cno is None:
00059         self.cno = 0
00060       if self.lli is None:
00061         self.lli = 0
00062     else:
00063       self.cpMes = 0.
00064       self.prMes = 0.
00065       self.doMes = 0.
00066       self.sv = 0
00067       self.mesQI = 0
00068       self.cno = 0
00069       self.lli = 0
00070 
00071   def _get_types(self):
00072     """
00073     internal API method
00074     """
00075     return self._slot_types
00076 
00077   def serialize(self, buff):
00078     """
00079     serialize message into buffer
00080     :param buff: buffer, ``StringIO``
00081     """
00082     try:
00083       _x = self
00084       buff.write(_struct_2dfB2bB.pack(_x.cpMes, _x.prMes, _x.doMes, _x.sv, _x.mesQI, _x.cno, _x.lli))
00085     except struct.error as se: self._check_types(se)
00086     except TypeError as te: self._check_types(te)
00087 
00088   def deserialize(self, str):
00089     """
00090     unpack serialized message in str into this message instance
00091     :param str: byte array of serialized message, ``str``
00092     """
00093     try:
00094       end = 0
00095       _x = self
00096       start = end
00097       end += 24
00098       (_x.cpMes, _x.prMes, _x.doMes, _x.sv, _x.mesQI, _x.cno, _x.lli,) = _struct_2dfB2bB.unpack(str[start:end])
00099       return self
00100     except struct.error as e:
00101       raise genpy.DeserializationError(e) #most likely buffer underfill
00102 
00103 
00104   def serialize_numpy(self, buff, numpy):
00105     """
00106     serialize message with numpy array types into buffer
00107     :param buff: buffer, ``StringIO``
00108     :param numpy: numpy python module
00109     """
00110     try:
00111       _x = self
00112       buff.write(_struct_2dfB2bB.pack(_x.cpMes, _x.prMes, _x.doMes, _x.sv, _x.mesQI, _x.cno, _x.lli))
00113     except struct.error as se: self._check_types(se)
00114     except TypeError as te: self._check_types(te)
00115 
00116   def deserialize_numpy(self, str, numpy):
00117     """
00118     unpack serialized message in str into this message instance using numpy for array types
00119     :param str: byte array of serialized message, ``str``
00120     :param numpy: numpy python module
00121     """
00122     try:
00123       end = 0
00124       _x = self
00125       start = end
00126       end += 24
00127       (_x.cpMes, _x.prMes, _x.doMes, _x.sv, _x.mesQI, _x.cno, _x.lli,) = _struct_2dfB2bB.unpack(str[start:end])
00128       return self
00129     except struct.error as e:
00130       raise genpy.DeserializationError(e) #most likely buffer underfill
00131 
00132 _struct_I = genpy.struct_I
00133 _struct_2dfB2bB = struct.Struct("<2dfB2bB")
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends


ublox_msgs
Author(s): Johannes Meyer
autogenerated on Mon Jul 15 2013 16:55:23