示例#1
0
文件: pyfob.py 项目: tenghuanhe/fobem
 def get_posang(self):
     self.ser2.write('B')
     while self.ser2.inWaiting() < 12:
         continue
     raw_data = self.ser2.read(12)
     self.all_data = utils.dataconvert(raw_data)
     return self.all_data
示例#2
0
 def getcord(self):
     self.ser2.write('B')
     while self.ser2.inWaiting() < 12:
         continue
     data = self.ser2.read(12)
     cord = dataconvert(data)
     return cord