Ejemplo n.º 1
0
 def serial_stuff(self):
     while (True):
         logging.info(marm.get_outgoing_struct())
         s.write(marm.get_outgoing_struct())
         time.sleep(0.0417)
         if (s.receive_into(marm)):
             scaled = [v / 1000.0 for v in marm.voltages]
             logging.info(scaled)
             self.app.set_displayed(scaled)
Ejemplo n.º 2
0
	def serial_stuff(self):
		while(True):
			logging.info(marm.get_outgoing_struct())
			s.write(marm.get_outgoing_struct())
			time.sleep(0.0417)
			if(s.receive_into(marm)):
				scaled = [ v / 1000.0 for v in marm.voltages]
				logging.info(scaled)
				self.app.set_displayed(scaled)
Ejemplo n.º 3
0
def e0():
    manager.write(marm.get_outgoing_struct())
Ejemplo n.º 4
0
def e0():
	manager.write(marm.get_outgoing_struct())