本文整理汇总了Python中BAL.Header.RiCHeader.RiCHeader.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python RiCHeader.__init__方法的具体用法?Python RiCHeader.__init__怎么用?Python RiCHeader.__init__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类BAL.Header.RiCHeader.RiCHeader
的用法示例。
在下文中一共展示了RiCHeader.__init__方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: from BAL.Header.RiCHeader import RiCHeader [as 别名]
# 或者: from BAL.Header.RiCHeader.RiCHeader import __init__ [as 别名]
def __init__(self, type, devId, pubHz):
RiCHeader.__init__(self)
self._id = 103
self._des = 0x1001
self._type = type
self._devId = devId
self._pubHz = pubHz
示例2: __init__
# 需要导入模块: from BAL.Header.RiCHeader import RiCHeader [as 别名]
# 或者: from BAL.Header.RiCHeader.RiCHeader import __init__ [as 别名]
def __init__(self, toConnect):
RiCHeader.__init__(self)
self._id = RES_ID
self._des = 0x1001
self._length = 7
self._checkSum = 0
self._toConnect = toConnect
self._checkSum = self.calCheckSum(self.dataTosend())
示例3: __init__
# 需要导入模块: from BAL.Header.RiCHeader import RiCHeader [as 别名]
# 或者: from BAL.Header.RiCHeader.RiCHeader import __init__ [as 别名]
def __init__(self):
RiCHeader.__init__(self)
self._id = ID_REQ
self._length = LEN_REQ
self._des = 0
self._checkSum = 0
self._finish = True
self._checkSum = self.calCheckSum(self.dataTosend())
示例4: __init__
# 需要导入模块: from BAL.Header.RiCHeader import RiCHeader [as 别名]
# 或者: from BAL.Header.RiCHeader.RiCHeader import __init__ [as 别名]
def __init__(self, servoId, position):
RiCHeader.__init__(self)
self._id = REQ_ID
self._des = 0x1001
self._length = REQ_LEN
self._servoId = servoId
self._position = position
self._checkSum = 0
self._checkSum = self.calCheckSum(self.dataTosend())
示例5: __init__
# 需要导入模块: from BAL.Header.RiCHeader import RiCHeader [as 别名]
# 或者: from BAL.Header.RiCHeader.RiCHeader import __init__ [as 别名]
def __init__(self, motorNum, speed):
RiCHeader.__init__(self)
self._id = OPEN_LOOP_REQ
self._length = MSG_LEN
self._des = 0x1001
self._checkSum = 0
self._motorNum = motorNum
self._speed = speed
self._checkSum = self.calCheckSum(self.dataTosend())
示例6: __init__
# 需要导入模块: from BAL.Header.RiCHeader import RiCHeader [as 别名]
# 或者: from BAL.Header.RiCHeader.RiCHeader import __init__ [as 别名]
def __init__(self, relayNum, status):
RiCHeader.__init__(self)
self._id = RELAY_REQ
self._length = MSG_LEN
self._des = 0x1001
self._checkSum = 0
self._relayNum = relayNum
self._status = status
self._checkSum = self.calCheckSum(self.dataTosend())
示例7: __init__
# 需要导入模块: from BAL.Header.RiCHeader import RiCHeader [as 别名]
# 或者: from BAL.Header.RiCHeader.RiCHeader import __init__ [as 别名]
def __init__(self, status):
RiCHeader.__init__(self)
self._id = IMU_REQ
self._length = MSG_LEN
self._des = 0x1001
self._checkSum = 0
self.status = status
self._checkSum = self.calCheckSum(self.dataTosend())
示例8: __init__
# 需要导入模块: from BAL.Header.RiCHeader import RiCHeader [as 别名]
# 或者: from BAL.Header.RiCHeader.RiCHeader import __init__ [as 别名]
def __init__(self, devType, devId, haveRight):
RiCHeader.__init__(self)
self._id = RIG_REQ
self._length = MSG_LEN
self._des = 0x1001
self._checkSum = 0
self._devType = devType
self._devId = devId
self._haveRight = haveRight
self._checkSum = self.calCheckSum(self.dataTosend())
示例9: __init__
# 需要导入模块: from BAL.Header.RiCHeader import RiCHeader [as 别名]
# 或者: from BAL.Header.RiCHeader.RiCHeader import __init__ [as 别名]
def __init__(self, devId, devType, fieldNum, val):
RiCHeader.__init__(self)
self._id = PSET_REQ
self._length = MSG_LEN
self._des = 0x1001
self._checkSum = 0
self._devId = devId # byte
self._devType = devType # byte
self._fieldNum = fieldNum # byte
self._val = val # float
self._checkSum = self.calCheckSum(self.dataTosend())
示例10: __init__
# 需要导入模块: from BAL.Header.RiCHeader import RiCHeader [as 别名]
# 或者: from BAL.Header.RiCHeader.RiCHeader import __init__ [as 别名]
def __init__(self):
RiCHeader.__init__(self)
self._velocityX = 0.0
self._velocityY = 0.0
self._velocityZ = 0.0
self._accelerationX = 0.0
self._accelerationY = 0.0
self._accelerationZ = 0.0
self._magnetometerX = 0.0
self._magnetometerY = 0.0
self._magnetometerZ = 0.0
self._orientationX = 0.0
self._orientationY = 0.0
self._orientationZ = 0.0
self._orientationW = 0.0
self._roll = 0.0
self._pitch = 0.0
self._yaw = 0.0
self._temperature = 0.0
示例11: __init__
# 需要导入模块: from BAL.Header.RiCHeader import RiCHeader [as 别名]
# 或者: from BAL.Header.RiCHeader.RiCHeader import __init__ [as 别名]
def __init__(self):
RiCHeader.__init__(self)
self._ver = 0.0
示例12: __init__
# 需要导入模块: from BAL.Header.RiCHeader import RiCHeader [as 别名]
# 或者: from BAL.Header.RiCHeader.RiCHeader import __init__ [as 别名]
def __init__(self):
RiCHeader.__init__(self)
self._requestForConnection = 0
示例13: __init__
# 需要导入模块: from BAL.Header.RiCHeader import RiCHeader [as 别名]
# 或者: from BAL.Header.RiCHeader.RiCHeader import __init__ [as 别名]
def __init__(self):
RiCHeader.__init__(self)
self._status = 0.0
示例14: __init__
# 需要导入模块: from BAL.Header.RiCHeader import RiCHeader [as 别名]
# 或者: from BAL.Header.RiCHeader.RiCHeader import __init__ [as 别名]
def __init__(self):
RiCHeader.__init__(self)
self._servoNum = 0
self._position = 0.0
示例15: __init__
# 需要导入模块: from BAL.Header.RiCHeader import RiCHeader [as 别名]
# 或者: from BAL.Header.RiCHeader.RiCHeader import __init__ [as 别名]
def __init__(self):
RiCHeader.__init__(self)
self._x = 0.0
self._y = 0.0
self._z = 0.0