def do_get_uc_temp(self, args): """Check the microcontroller's temperature""" try: data = obccom.sendrec(self, self.command_dict["get_uc_temp"]) except KeyError: log_exception("Wrong key. Check dictionary") return else: obccom.save_results(self, data)
def do_get_htp(self, args): """Get humidity, temperature and pressure data""" try: data = obccom.sendrec(self, self.command_dict["get_htp"]) except KeyError: log_exception("Wrong key. Check dictionary") return else: obccom.save_results(self, data)
def do_get_photo(self, args): """Get data from set of photodetectors""" try: data = obccom.sendrec(self, self.command_dict["get_photo"]) except KeyError: log_exception("Wrong key. Check dictionary") return else: obccom.save_results(self, data)
def do_status(self, args): """Check experiment's status""" try: data = obccom.sendrec(self, self.command_dict["get_status"]) except KeyError: log_exception("Wrong key. Check dictionary") return else: obccom.save_results(self, data)
def do_get_speed(self, args): """Get actual motor's speed""" # TODO: no command in dict try: data = obccom.sendrec(self, self.command_dict["get_speed"]) except KeyError: log_exception("Wrong key. Check dictionary") return else: obccom.save_results(self, data)