Laelaps  2.3.5
RoadNarrows Robotics Small Outdoor Mobile Robot Project
ImuMspMsgs.py
Go to the documentation of this file.
1 # This file was automatically generated by SWIG (http://www.swig.org).
2 # Version 3.0.8
3 #
4 # Do not make changes to this file unless you know what you are doing--modify
5 # the SWIG interface file instead.
6 
7 
8 
9 
10 
11 from sys import version_info
12 if version_info >= (2, 6, 0):
13  def swig_import_helper():
14  from os.path import dirname
15  import imp
16  fp = None
17  try:
18  fp, pathname, description = imp.find_module('_ImuMspMsgs', [dirname(__file__)])
19  except ImportError:
20  import _ImuMspMsgs
21  return _ImuMspMsgs
22  if fp is not None:
23  try:
24  _mod = imp.load_module('_ImuMspMsgs', fp, pathname, description)
25  finally:
26  fp.close()
27  return _mod
28  _ImuMspMsgs = swig_import_helper()
29  del swig_import_helper
30 else:
31  import _ImuMspMsgs
32 del version_info
33 try:
34  _swig_property = property
35 except NameError:
36  pass # Python < 2.2 doesn't have 'property'.
37 
38 
39 def _swig_setattr_nondynamic(self, class_type, name, value, static=1):
40  if (name == "thisown"):
41  return self.this.own(value)
42  if (name == "this"):
43  if type(value).__name__ == 'SwigPyObject':
44  self.__dict__[name] = value
45  return
46  method = class_type.__swig_setmethods__.get(name, None)
47  if method:
48  return method(self, value)
49  if (not static):
50  if _newclass:
51  object.__setattr__(self, name, value)
52  else:
53  self.__dict__[name] = value
54  else:
55  raise AttributeError("You cannot add attributes to %s" % self)
56 
57 
58 def _swig_setattr(self, class_type, name, value):
59  return _swig_setattr_nondynamic(self, class_type, name, value, 0)
60 
61 
62 def _swig_getattr_nondynamic(self, class_type, name, static=1):
63  if (name == "thisown"):
64  return self.this.own()
65  method = class_type.__swig_getmethods__.get(name, None)
66  if method:
67  return method(self)
68  if (not static):
69  return object.__getattr__(self, name)
70  else:
71  raise AttributeError(name)
72 
73 def _swig_getattr(self, class_type, name):
74  return _swig_getattr_nondynamic(self, class_type, name, 0)
75 
76 
77 def _swig_repr(self):
78  try:
79  strthis = "proxy of " + self.this.__repr__()
80  except Exception:
81  strthis = ""
82  return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
83 
84 try:
85  _object = object
86  _newclass = 1
87 except AttributeError:
88  class _object:
89  pass
90  _newclass = 0
91 
92 
93 
94 _ImuMspMsgs.X_swigconstant(_ImuMspMsgs)
95 X = _ImuMspMsgs.X
96 
97 _ImuMspMsgs.Y_swigconstant(_ImuMspMsgs)
98 Y = _ImuMspMsgs.Y
99 
100 _ImuMspMsgs.Z_swigconstant(_ImuMspMsgs)
101 Z = _ImuMspMsgs.Z
102 
103 _ImuMspMsgs.NumOfAxes_swigconstant(_ImuMspMsgs)
104 NumOfAxes = _ImuMspMsgs.NumOfAxes
105 
106 _ImuMspMsgs.ROLL_swigconstant(_ImuMspMsgs)
107 ROLL = _ImuMspMsgs.ROLL
108 
109 _ImuMspMsgs.PITCH_swigconstant(_ImuMspMsgs)
110 PITCH = _ImuMspMsgs.PITCH
111 
112 _ImuMspMsgs.YAW_swigconstant(_ImuMspMsgs)
113 YAW = _ImuMspMsgs.YAW
114 
115 _ImuMspMsgs.MspPreamble_swigconstant(_ImuMspMsgs)
116 MspPreamble = _ImuMspMsgs.MspPreamble
117 
118 _ImuMspMsgs.MspDirTo_swigconstant(_ImuMspMsgs)
119 MspDirTo = _ImuMspMsgs.MspDirTo
120 
121 _ImuMspMsgs.MspDirFrom_swigconstant(_ImuMspMsgs)
122 MspDirFrom = _ImuMspMsgs.MspDirFrom
123 
124 _ImuMspMsgs.MspCmdPreamble_swigconstant(_ImuMspMsgs)
125 MspCmdPreamble = _ImuMspMsgs.MspCmdPreamble
126 
127 _ImuMspMsgs.MspRspPreamble_swigconstant(_ImuMspMsgs)
128 MspRspPreamble = _ImuMspMsgs.MspRspPreamble
129 
130 _ImuMspMsgs.MspFieldPosDir_swigconstant(_ImuMspMsgs)
131 MspFieldPosDir = _ImuMspMsgs.MspFieldPosDir
132 
133 _ImuMspMsgs.MspFieldPosSize_swigconstant(_ImuMspMsgs)
134 MspFieldPosSize = _ImuMspMsgs.MspFieldPosSize
135 
136 _ImuMspMsgs.MspFieldPosCmdId_swigconstant(_ImuMspMsgs)
137 MspFieldPosCmdId = _ImuMspMsgs.MspFieldPosCmdId
138 
139 _ImuMspMsgs.MspFieldPosDataStart_swigconstant(_ImuMspMsgs)
140 MspFieldPosDataStart = _ImuMspMsgs.MspFieldPosDataStart
141 
142 _ImuMspMsgs.MspCmdHdrLen_swigconstant(_ImuMspMsgs)
143 MspCmdHdrLen = _ImuMspMsgs.MspCmdHdrLen
144 
145 _ImuMspMsgs.MspCmdMinLen_swigconstant(_ImuMspMsgs)
146 MspCmdMinLen = _ImuMspMsgs.MspCmdMinLen
147 
148 _ImuMspMsgs.MspCmdMaxLen_swigconstant(_ImuMspMsgs)
149 MspCmdMaxLen = _ImuMspMsgs.MspCmdMaxLen
150 
151 _ImuMspMsgs.MspRspHdrLen_swigconstant(_ImuMspMsgs)
152 MspRspHdrLen = _ImuMspMsgs.MspRspHdrLen
153 
154 _ImuMspMsgs.MspRspMinLen_swigconstant(_ImuMspMsgs)
155 MspRspMinLen = _ImuMspMsgs.MspRspMinLen
156 
157 _ImuMspMsgs.MspRspMaxLen_swigconstant(_ImuMspMsgs)
158 MspRspMaxLen = _ImuMspMsgs.MspRspMaxLen
159 
160 _ImuMspMsgs.MspCmdIdIdent_swigconstant(_ImuMspMsgs)
161 MspCmdIdIdent = _ImuMspMsgs.MspCmdIdIdent
162 
163 _ImuMspMsgs.MspCmdIdRawImu_swigconstant(_ImuMspMsgs)
164 MspCmdIdRawImu = _ImuMspMsgs.MspCmdIdRawImu
165 
166 _ImuMspMsgs.MspCmdIdAttitude_swigconstant(_ImuMspMsgs)
167 MspCmdIdAttitude = _ImuMspMsgs.MspCmdIdAttitude
169  __swig_setmethods__ = {}
170  __setattr__ = lambda self, name, value: _swig_setattr(self, MspIdent, name, value)
171  __swig_getmethods__ = {}
172  __getattr__ = lambda self, name: _swig_getattr(self, MspIdent, name)
173  __repr__ = _swig_repr
174  __swig_setmethods__["m_uFwVersion"] = _ImuMspMsgs.MspIdent_m_uFwVersion_set
175  __swig_getmethods__["m_uFwVersion"] = _ImuMspMsgs.MspIdent_m_uFwVersion_get
176  if _newclass:
177  m_uFwVersion = _swig_property(_ImuMspMsgs.MspIdent_m_uFwVersion_get, _ImuMspMsgs.MspIdent_m_uFwVersion_set)
178  __swig_setmethods__["m_uMultiType"] = _ImuMspMsgs.MspIdent_m_uMultiType_set
179  __swig_getmethods__["m_uMultiType"] = _ImuMspMsgs.MspIdent_m_uMultiType_get
180  if _newclass:
181  m_uMultiType = _swig_property(_ImuMspMsgs.MspIdent_m_uMultiType_get, _ImuMspMsgs.MspIdent_m_uMultiType_set)
182  __swig_setmethods__["m_uMspVersion"] = _ImuMspMsgs.MspIdent_m_uMspVersion_set
183  __swig_getmethods__["m_uMspVersion"] = _ImuMspMsgs.MspIdent_m_uMspVersion_get
184  if _newclass:
185  m_uMspVersion = _swig_property(_ImuMspMsgs.MspIdent_m_uMspVersion_get, _ImuMspMsgs.MspIdent_m_uMspVersion_set)
186  __swig_setmethods__["m_uCaps"] = _ImuMspMsgs.MspIdent_m_uCaps_set
187  __swig_getmethods__["m_uCaps"] = _ImuMspMsgs.MspIdent_m_uCaps_get
188  if _newclass:
189  m_uCaps = _swig_property(_ImuMspMsgs.MspIdent_m_uCaps_get, _ImuMspMsgs.MspIdent_m_uCaps_set)
190 
191  def __init__(self):
192  this = _ImuMspMsgs.new_MspIdent()
193  try:
194  self.this.append(this)
195  except Exception:
196  self.this = this
197  __swig_destroy__ = _ImuMspMsgs.delete_MspIdent
198  __del__ = lambda self: None
199 MspIdent_swigregister = _ImuMspMsgs.MspIdent_swigregister
200 MspIdent_swigregister(MspIdent)
201 
202 
203 _ImuMspMsgs.MspGToMPerSec2_swigconstant(_ImuMspMsgs)
204 MspGToMPerSec2 = _ImuMspMsgs.MspGToMPerSec2
205 
206 _ImuMspMsgs.MspMpu6050RawToG_swigconstant(_ImuMspMsgs)
207 MspMpu6050RawToG = _ImuMspMsgs.MspMpu6050RawToG
208 
209 _ImuMspMsgs.MspMpu6050RawToDegPerSec_swigconstant(_ImuMspMsgs)
210 MspMpu6050RawToDegPerSec = _ImuMspMsgs.MspMpu6050RawToDegPerSec
211 
212 _ImuMspMsgs.MspAttitudeRawToDeg_swigconstant(_ImuMspMsgs)
213 MspAttitudeRawToDeg = _ImuMspMsgs.MspAttitudeRawToDeg
214 
215 
216 """
217 RoadNarrows Robotics Laelaps IMU Multiwii Serial Protocol Messages.
218 """
219 
220 ## \file
221 ## \package LaeLaeps.WatchDogMsgs
222 ##
223 ## \brief RoadNarrows Robotics Laelaps Swigged IMU MSP Messaging.
224 ## Python Module.
225 ##
226 ## \author Robin Knight (robin.knight@roadnarrows.com)
227 ##
228 ## \par Copyright:
229 ## (C) 2016. RoadNarrows LLC.\n
230 ## (http://www.roadnarrows.com)\n
231 ## All Rights Reserved
232 ##
233 
234 
235 # This file is compatible with both classic and new-style classes.
236 
237