_CfgNAV5.py
Go to the documentation of this file.
00001 """autogenerated by genpy from ublox_msgs/CfgNAV5.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 CfgNAV5(genpy.Message):
00009   _md5sum = "7c6e2419d1dd6532b8f09e39a02e167c"
00010   _type = "ublox_msgs/CfgNAV5"
00011   _has_header = False #flag to mark the presence of a Header object
00012   _full_text = """# CFG-NAV5 (0x06 0x24)
00013 # Navigation Engine Settings
00014 #
00015 
00016 uint8 CLASS_ID = 6
00017 uint8 MESSAGE_ID = 36
00018 
00019 uint16 mask             # Parameters Bitmask. Only the masked
00020                         # parameters will be applied.
00021 uint16 MASK_DYN = 1                 # Apply dynamic model settings
00022 uint16 MASK_MIN_EL = 2              # Apply minimum elevation settings
00023 uint16 MASK_FIX_MODE = 4            # Apply fix mode settings
00024 uint16 MASK_DR_LIM = 8              # Apply DR limit settings
00025 uint16 MASK_POS_MASK = 16           # Apply position mask settings
00026 uint16 MASK_TIME_MASK = 32          # Apply time mask settings
00027 uint16 MASK_STATIC_HOLD_MASK = 64   # Apply static hold settings
00028 uint16 MASK_DGPS_MASK = 128         # Apply DGPS settings, firmware 7 and newer only
00029 
00030 uint8 dynModel          # Dynamic Platform model:
00031 uint8 DYN_MODEL_PORTABLE = 0        # Portable
00032 uint8 DYN_MODEL_STATIONARY = 2      # Stationary
00033 uint8 DYN_MODEL_PEDESTRIAN = 3      # Pedestrian
00034 uint8 DYN_MODEL_AUTOMOTIVE = 4      # Automotive
00035 uint8 DYN_MODEL_SEA = 5             # Sea
00036 uint8 DYN_MODEL_AIRBORNE_1G = 6     # Airborne with <1g Acceleration
00037 uint8 DYN_MODEL_AIRBORNE_2G = 7     # Airborne with <2g Acceleration
00038 uint8 DYN_MODEL_AIRBORNE_4G = 8     # Airborne with <4g Acceleration
00039 
00040 uint8 fixMode           # Position Fixing Mode.
00041 uint8 FIX_MODE_2D_ONLY = 1          # 2D only
00042 uint8 FIX_MODE_3D_ONLY = 2          # 3D only
00043 uint8 FIX_MODE_AUTO = 3             # Auto 2D/3D
00044 
00045 int32 fixedAlt          # Fixed altitude (mean sea level) for 2D fix mode. [m / 0.01]
00046 uint32 fixedAltVar      # Fixed altitude variance for 2D mode. [m^2 / 0.0001]
00047 int8 minElev            # Minimum Elevation for a GNSS satellite to be used in NAV [deg]
00048 uint8 drLimit           # Maximum time to perform dead reckoning [s]
00049                         # (linear extrapolation) in case of GPS signal loss
00050 uint16 pDop             # Position DOP Mask to use [1 / 0.1]
00051 uint16 tDop             # Time DOP Mask to use [1 / 0.1]
00052 uint16 pAcc             # Position Accuracy Mask [m]
00053 uint16 tAcc             # Time Accuracy Mask [m]
00054 uint8 staticHoldThresh  # Static hold threshold [cm/s]
00055 uint8 dgpsTimeOut       # DGPS timeout, firmware 7 and newer only [s]
00056 uint32 reserved2        # Always set to zero
00057 uint32 reserved3        # Always set to zero
00058 uint32 reserved4        # Always set to zero
00059 
00060 """
00061   # Pseudo-constants
00062   CLASS_ID = 6
00063   MESSAGE_ID = 36
00064   MASK_DYN = 1
00065   MASK_MIN_EL = 2
00066   MASK_FIX_MODE = 4
00067   MASK_DR_LIM = 8
00068   MASK_POS_MASK = 16
00069   MASK_TIME_MASK = 32
00070   MASK_STATIC_HOLD_MASK = 64
00071   MASK_DGPS_MASK = 128
00072   DYN_MODEL_PORTABLE = 0
00073   DYN_MODEL_STATIONARY = 2
00074   DYN_MODEL_PEDESTRIAN = 3
00075   DYN_MODEL_AUTOMOTIVE = 4
00076   DYN_MODEL_SEA = 5
00077   DYN_MODEL_AIRBORNE_1G = 6
00078   DYN_MODEL_AIRBORNE_2G = 7
00079   DYN_MODEL_AIRBORNE_4G = 8
00080   FIX_MODE_2D_ONLY = 1
00081   FIX_MODE_3D_ONLY = 2
00082   FIX_MODE_AUTO = 3
00083 
00084   __slots__ = ['mask','dynModel','fixMode','fixedAlt','fixedAltVar','minElev','drLimit','pDop','tDop','pAcc','tAcc','staticHoldThresh','dgpsTimeOut','reserved2','reserved3','reserved4']
00085   _slot_types = ['uint16','uint8','uint8','int32','uint32','int8','uint8','uint16','uint16','uint16','uint16','uint8','uint8','uint32','uint32','uint32']
00086 
00087   def __init__(self, *args, **kwds):
00088     """
00089     Constructor. Any message fields that are implicitly/explicitly
00090     set to None will be assigned a default value. The recommend
00091     use is keyword arguments as this is more robust to future message
00092     changes.  You cannot mix in-order arguments and keyword arguments.
00093 
00094     The available fields are:
00095        mask,dynModel,fixMode,fixedAlt,fixedAltVar,minElev,drLimit,pDop,tDop,pAcc,tAcc,staticHoldThresh,dgpsTimeOut,reserved2,reserved3,reserved4
00096 
00097     :param args: complete set of field values, in .msg order
00098     :param kwds: use keyword arguments corresponding to message field names
00099     to set specific fields.
00100     """
00101     if args or kwds:
00102       super(CfgNAV5, self).__init__(*args, **kwds)
00103       #message fields cannot be None, assign default values for those that are
00104       if self.mask is None:
00105         self.mask = 0
00106       if self.dynModel is None:
00107         self.dynModel = 0
00108       if self.fixMode is None:
00109         self.fixMode = 0
00110       if self.fixedAlt is None:
00111         self.fixedAlt = 0
00112       if self.fixedAltVar is None:
00113         self.fixedAltVar = 0
00114       if self.minElev is None:
00115         self.minElev = 0
00116       if self.drLimit is None:
00117         self.drLimit = 0
00118       if self.pDop is None:
00119         self.pDop = 0
00120       if self.tDop is None:
00121         self.tDop = 0
00122       if self.pAcc is None:
00123         self.pAcc = 0
00124       if self.tAcc is None:
00125         self.tAcc = 0
00126       if self.staticHoldThresh is None:
00127         self.staticHoldThresh = 0
00128       if self.dgpsTimeOut is None:
00129         self.dgpsTimeOut = 0
00130       if self.reserved2 is None:
00131         self.reserved2 = 0
00132       if self.reserved3 is None:
00133         self.reserved3 = 0
00134       if self.reserved4 is None:
00135         self.reserved4 = 0
00136     else:
00137       self.mask = 0
00138       self.dynModel = 0
00139       self.fixMode = 0
00140       self.fixedAlt = 0
00141       self.fixedAltVar = 0
00142       self.minElev = 0
00143       self.drLimit = 0
00144       self.pDop = 0
00145       self.tDop = 0
00146       self.pAcc = 0
00147       self.tAcc = 0
00148       self.staticHoldThresh = 0
00149       self.dgpsTimeOut = 0
00150       self.reserved2 = 0
00151       self.reserved3 = 0
00152       self.reserved4 = 0
00153 
00154   def _get_types(self):
00155     """
00156     internal API method
00157     """
00158     return self._slot_types
00159 
00160   def serialize(self, buff):
00161     """
00162     serialize message into buffer
00163     :param buff: buffer, ``StringIO``
00164     """
00165     try:
00166       _x = self
00167       buff.write(_struct_H2BiIbB4H2B3I.pack(_x.mask, _x.dynModel, _x.fixMode, _x.fixedAlt, _x.fixedAltVar, _x.minElev, _x.drLimit, _x.pDop, _x.tDop, _x.pAcc, _x.tAcc, _x.staticHoldThresh, _x.dgpsTimeOut, _x.reserved2, _x.reserved3, _x.reserved4))
00168     except struct.error as se: self._check_types(se)
00169     except TypeError as te: self._check_types(te)
00170 
00171   def deserialize(self, str):
00172     """
00173     unpack serialized message in str into this message instance
00174     :param str: byte array of serialized message, ``str``
00175     """
00176     try:
00177       end = 0
00178       _x = self
00179       start = end
00180       end += 36
00181       (_x.mask, _x.dynModel, _x.fixMode, _x.fixedAlt, _x.fixedAltVar, _x.minElev, _x.drLimit, _x.pDop, _x.tDop, _x.pAcc, _x.tAcc, _x.staticHoldThresh, _x.dgpsTimeOut, _x.reserved2, _x.reserved3, _x.reserved4,) = _struct_H2BiIbB4H2B3I.unpack(str[start:end])
00182       return self
00183     except struct.error as e:
00184       raise genpy.DeserializationError(e) #most likely buffer underfill
00185 
00186 
00187   def serialize_numpy(self, buff, numpy):
00188     """
00189     serialize message with numpy array types into buffer
00190     :param buff: buffer, ``StringIO``
00191     :param numpy: numpy python module
00192     """
00193     try:
00194       _x = self
00195       buff.write(_struct_H2BiIbB4H2B3I.pack(_x.mask, _x.dynModel, _x.fixMode, _x.fixedAlt, _x.fixedAltVar, _x.minElev, _x.drLimit, _x.pDop, _x.tDop, _x.pAcc, _x.tAcc, _x.staticHoldThresh, _x.dgpsTimeOut, _x.reserved2, _x.reserved3, _x.reserved4))
00196     except struct.error as se: self._check_types(se)
00197     except TypeError as te: self._check_types(te)
00198 
00199   def deserialize_numpy(self, str, numpy):
00200     """
00201     unpack serialized message in str into this message instance using numpy for array types
00202     :param str: byte array of serialized message, ``str``
00203     :param numpy: numpy python module
00204     """
00205     try:
00206       end = 0
00207       _x = self
00208       start = end
00209       end += 36
00210       (_x.mask, _x.dynModel, _x.fixMode, _x.fixedAlt, _x.fixedAltVar, _x.minElev, _x.drLimit, _x.pDop, _x.tDop, _x.pAcc, _x.tAcc, _x.staticHoldThresh, _x.dgpsTimeOut, _x.reserved2, _x.reserved3, _x.reserved4,) = _struct_H2BiIbB4H2B3I.unpack(str[start:end])
00211       return self
00212     except struct.error as e:
00213       raise genpy.DeserializationError(e) #most likely buffer underfill
00214 
00215 _struct_I = genpy.struct_I
00216 _struct_H2BiIbB4H2B3I = struct.Struct("<H2BiIbB4H2B3I")
 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