11 from sys
import version_info
12 if version_info >= (2, 6, 0):
13 def swig_import_helper():
14 from os.path
import dirname
18 fp, pathname, description = imp.find_module(
'_ImuMspMsgs', [dirname(__file__)])
24 _mod = imp.load_module(
'_ImuMspMsgs', fp, pathname, description)
28 _ImuMspMsgs = swig_import_helper()
29 del swig_import_helper
34 _swig_property = property
39 def _swig_setattr_nondynamic(self, class_type, name, value, static=1):
40 if (name ==
"thisown"):
41 return self.this.own(value)
43 if type(value).__name__ ==
'SwigPyObject':
44 self.__dict__[name] = value
46 method = class_type.__swig_setmethods__.get(name,
None)
48 return method(self, value)
51 object.__setattr__(self, name, value)
53 self.__dict__[name] = value
55 raise AttributeError(
"You cannot add attributes to %s" % self)
58 def _swig_setattr(self, class_type, name, value):
59 return _swig_setattr_nondynamic(self, class_type, name, value, 0)
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)
69 return object.__getattr__(self, name)
71 raise AttributeError(name)
73 def _swig_getattr(self, class_type, name):
74 return _swig_getattr_nondynamic(self, class_type, name, 0)
79 strthis =
"proxy of " + self.this.__repr__()
82 return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
87 except AttributeError:
94 _ImuMspMsgs.X_swigconstant(_ImuMspMsgs)
97 _ImuMspMsgs.Y_swigconstant(_ImuMspMsgs)
100 _ImuMspMsgs.Z_swigconstant(_ImuMspMsgs)
103 _ImuMspMsgs.NumOfAxes_swigconstant(_ImuMspMsgs)
104 NumOfAxes = _ImuMspMsgs.NumOfAxes
106 _ImuMspMsgs.ROLL_swigconstant(_ImuMspMsgs)
107 ROLL = _ImuMspMsgs.ROLL
109 _ImuMspMsgs.PITCH_swigconstant(_ImuMspMsgs)
110 PITCH = _ImuMspMsgs.PITCH
112 _ImuMspMsgs.YAW_swigconstant(_ImuMspMsgs)
113 YAW = _ImuMspMsgs.YAW
115 _ImuMspMsgs.MspPreamble_swigconstant(_ImuMspMsgs)
116 MspPreamble = _ImuMspMsgs.MspPreamble
118 _ImuMspMsgs.MspDirTo_swigconstant(_ImuMspMsgs)
119 MspDirTo = _ImuMspMsgs.MspDirTo
121 _ImuMspMsgs.MspDirFrom_swigconstant(_ImuMspMsgs)
122 MspDirFrom = _ImuMspMsgs.MspDirFrom
124 _ImuMspMsgs.MspCmdPreamble_swigconstant(_ImuMspMsgs)
125 MspCmdPreamble = _ImuMspMsgs.MspCmdPreamble
127 _ImuMspMsgs.MspRspPreamble_swigconstant(_ImuMspMsgs)
128 MspRspPreamble = _ImuMspMsgs.MspRspPreamble
130 _ImuMspMsgs.MspFieldPosDir_swigconstant(_ImuMspMsgs)
131 MspFieldPosDir = _ImuMspMsgs.MspFieldPosDir
133 _ImuMspMsgs.MspFieldPosSize_swigconstant(_ImuMspMsgs)
134 MspFieldPosSize = _ImuMspMsgs.MspFieldPosSize
136 _ImuMspMsgs.MspFieldPosCmdId_swigconstant(_ImuMspMsgs)
137 MspFieldPosCmdId = _ImuMspMsgs.MspFieldPosCmdId
139 _ImuMspMsgs.MspFieldPosDataStart_swigconstant(_ImuMspMsgs)
140 MspFieldPosDataStart = _ImuMspMsgs.MspFieldPosDataStart
142 _ImuMspMsgs.MspCmdHdrLen_swigconstant(_ImuMspMsgs)
143 MspCmdHdrLen = _ImuMspMsgs.MspCmdHdrLen
145 _ImuMspMsgs.MspCmdMinLen_swigconstant(_ImuMspMsgs)
146 MspCmdMinLen = _ImuMspMsgs.MspCmdMinLen
148 _ImuMspMsgs.MspCmdMaxLen_swigconstant(_ImuMspMsgs)
149 MspCmdMaxLen = _ImuMspMsgs.MspCmdMaxLen
151 _ImuMspMsgs.MspRspHdrLen_swigconstant(_ImuMspMsgs)
152 MspRspHdrLen = _ImuMspMsgs.MspRspHdrLen
154 _ImuMspMsgs.MspRspMinLen_swigconstant(_ImuMspMsgs)
155 MspRspMinLen = _ImuMspMsgs.MspRspMinLen
157 _ImuMspMsgs.MspRspMaxLen_swigconstant(_ImuMspMsgs)
158 MspRspMaxLen = _ImuMspMsgs.MspRspMaxLen
160 _ImuMspMsgs.MspCmdIdIdent_swigconstant(_ImuMspMsgs)
161 MspCmdIdIdent = _ImuMspMsgs.MspCmdIdIdent
163 _ImuMspMsgs.MspCmdIdRawImu_swigconstant(_ImuMspMsgs)
164 MspCmdIdRawImu = _ImuMspMsgs.MspCmdIdRawImu
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
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
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
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
189 m_uCaps = _swig_property(_ImuMspMsgs.MspIdent_m_uCaps_get, _ImuMspMsgs.MspIdent_m_uCaps_set)
192 this = _ImuMspMsgs.new_MspIdent()
194 self.this.append(this)
197 __swig_destroy__ = _ImuMspMsgs.delete_MspIdent
198 __del__ =
lambda self:
None 199 MspIdent_swigregister = _ImuMspMsgs.MspIdent_swigregister
200 MspIdent_swigregister(MspIdent)
203 _ImuMspMsgs.MspGToMPerSec2_swigconstant(_ImuMspMsgs)
204 MspGToMPerSec2 = _ImuMspMsgs.MspGToMPerSec2
206 _ImuMspMsgs.MspMpu6050RawToG_swigconstant(_ImuMspMsgs)
207 MspMpu6050RawToG = _ImuMspMsgs.MspMpu6050RawToG
209 _ImuMspMsgs.MspMpu6050RawToDegPerSec_swigconstant(_ImuMspMsgs)
210 MspMpu6050RawToDegPerSec = _ImuMspMsgs.MspMpu6050RawToDegPerSec
212 _ImuMspMsgs.MspAttitudeRawToDeg_swigconstant(_ImuMspMsgs)
213 MspAttitudeRawToDeg = _ImuMspMsgs.MspAttitudeRawToDeg
217 RoadNarrows Robotics Laelaps IMU Multiwii Serial Protocol Messages.