Script execution
This commit is contained in:
+2
-2
@@ -67,7 +67,7 @@ class RobotTCP(TcpDevice, Stoppable):
|
||||
def get_var(self, name):
|
||||
return self.execute('get_var', name)
|
||||
|
||||
def get_str(self, name):
|
||||
def get_str(self, name='s'):
|
||||
return self.execute('get_str', name)
|
||||
|
||||
def get_arr(self, name, size):
|
||||
@@ -208,7 +208,7 @@ class RobotTCP(TcpDevice, Stoppable):
|
||||
def get_safety_fault_signal(self):
|
||||
fault = self.eval_bool("safetyFault(s)")
|
||||
if (fault):
|
||||
return get_str("")
|
||||
return get_str()
|
||||
|
||||
|
||||
#Motion control
|
||||
|
||||
Reference in New Issue
Block a user