ConnectionResponse.py
Go to the documentation of this file.
00001 import struct
00002 
00003 __author__ = 'tom1231'
00004 from BAL.Header.RiCHeader import RiCHeader
00005 
00006 RES_ID = 101
00007 
00008 class ConnectionResponse(RiCHeader):
00009 
00010     def dataTosend(self):
00011         return RiCHeader.dataTosend(self) + struct.pack('<?', self._toConnect)
00012 
00013     def __init__(self, toConnect):
00014         RiCHeader.__init__(self)
00015         self._id = RES_ID
00016         self._des = 0x1001
00017         self._length = 7
00018         self._checkSum = 0
00019         self._toConnect = toConnect
00020         self._checkSum = self.calCheckSum(self.dataTosend())
00021 
00022 
00023 
00024 


ric_board
Author(s): RoboTiCan
autogenerated on Fri Oct 27 2017 03:02:30