예제 #1
0
 def countCS3(self):
     i = 0
     self.esc3t.set(str(0))
     self.es3t.set(str(0))
     start_time = time()
     while i < 20000:
         readt = sensores.readT(3)
         if readt != None:
             elapsed_time = time() - start_time
             self.esc3t.set(str(elapsed_time))
             self.es3t.set(str(readt))
             i = 20000
예제 #2
0
 def countDS2(self):
     i = 0
     self.esd2t.set(str(0))
     start_time = time()
     while i < 20000:
         readt = sensores.readT(2)
         print(readt)
         if readt == None:
             elapsed_time = time() - start_time
             self.esd2t.set(str(elapsed_time))
             self.es2t.set(str(readt))
             i = 20000