varify setdo external communication command
This commit is contained in:
parent
42cd10c799
commit
e0135cad21
@ -1915,8 +1915,8 @@ class ExternalCommunication(object):
|
||||
def close_reduced_mode(self): # OK
|
||||
return self.__exec_cmd("close_reduced_mode", "关闭缩减模式(不限操作模式)", self.exec_desc)
|
||||
|
||||
def setdo_value(self, do_name: str, do_value: str): # NG | do_value 为 true/false
|
||||
return self.__exec_cmd(f"setdo:{do_name},{do_value}", f"设置 {do_name} 的值为 {do_value}", self.exec_desc)
|
||||
def setdo_value(self, do_name: str, do_value: str): # OK | do_value 为 true/false
|
||||
return self.__exec_cmd(f"setdo:{do_name},{do_value}", f"设置 {do_name} 的值为 {do_value} ", self.exec_desc)
|
||||
|
||||
def modify_system_time(self, robot_time): # OK
|
||||
return self.__exec_cmd(f"set_robot_time:{robot_time}", f"修改控制器和示教器的时间为 {robot_time} 的", self.exec_desc)
|
||||
@ -2073,7 +2073,7 @@ class ExternalCommunication(object):
|
||||
def __exec_cmd(self, directive, description, more_desc=""):
|
||||
self.s_string(directive)
|
||||
result = self.r_string(directive).strip()
|
||||
clibs.logger.info(f"执行{description}指令 {directive},返回值为 {result}{more_desc}")
|
||||
clibs.logger.info(f"执行{description}指令是 {directive},返回值为 {result}{more_desc}")
|
||||
return result
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user