Script execution
This commit is contained in:
@@ -183,13 +183,14 @@ class RobotTCP(TcpDevice):
|
||||
self.working_mode = "invalid"
|
||||
return self.working_mode
|
||||
|
||||
def update_status():
|
||||
def update_status(self):
|
||||
read_working_mode()
|
||||
is_powered()
|
||||
get_monitor_speed()
|
||||
|
||||
def poll_events():
|
||||
def poll_events(self):
|
||||
ev = self.read_event()
|
||||
print ev
|
||||
if ev is not None:
|
||||
self.getLogger().info(ev)
|
||||
on_event(ev)
|
||||
@@ -203,7 +204,7 @@ class RobotTCP(TcpDevice):
|
||||
self.setState(State.Offline)
|
||||
|
||||
|
||||
def on_event(ev):
|
||||
def on_event(self,ev):
|
||||
pass
|
||||
|
||||
def mount(self, puck, sample):
|
||||
|
||||
Reference in New Issue
Block a user