Skip to content

Commit

Permalink
Remove incomplete robot check that causes bug with single robot
Browse files Browse the repository at this point in the history
  • Loading branch information
Tolonen Luka committed Sep 18, 2024
1 parent 8fe04de commit 5ad9439
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion invesalius/gui/task_navigator.py
Original file line number Diff line number Diff line change
Expand Up @@ -1649,7 +1649,6 @@ def UpdateRobotButtons(self):
and self.target_selected
and self.target_mode
and self.robot.IsConnected()
and self.robot.IsReady()
)
self.EnableRobotTrackTargetButton(enabled=track_target_button_enabled)

Expand Down
2 changes: 1 addition & 1 deletion invesalius/navigation/robot.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ def IsConnected(self):
return self.is_robot_connected

def IsReady(self): # LUKATODO: use this check before enabling robot for navigation...
self.IsConnected() and (self.coil_name in self.navigation.coil_registrations)
return self.IsConnected() and (self.coil_name in self.navigation.coil_registrations)

def SetRobotIP(self, data):
if data is not None:
Expand Down

0 comments on commit 5ad9439

Please sign in to comment.