gpsParamResponse.py
Go to the documentation of this file.
00001 __author__ = 'tom1231'
00002 import struct
00003 from BAL.Header.Response.ParamBuildResponse import ParamBuildResponse, GPS
00004 
00005 MSG_LEN = 18
00006 
00007 class GPSParamResponse(ParamBuildResponse):
00008     def __init__(self, param):
00009         ParamBuildResponse.__init__(self, GPS, 0, param.getGpsPubHz())
00010         self._length = MSG_LEN
00011         self._checkSum = 0
00012         self._baudrate = param.getGpsBaudrate()
00013 
00014         self._checkSum = self.calCheckSum(self.dataTosend())
00015 
00016     def dataTosend(self):
00017         return ParamBuildResponse.dataTosend(self) + struct.pack('<i', self._baudrate)
00018 


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