Skip to content

Commit c102a86

Browse files
author
Leonid Fedorenchik
committed
pymycobot630.py: Fix bug in is_in_position() call
1 parent 58c3fdf commit c102a86

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pymycobot/mycobotpro630.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -853,7 +853,7 @@ def set_coords(self, coords, speed):
853853
coords (list[float]): coords to set, list[float] of size 6
854854
speed (float): speed percentage (0 ~ 100 %)
855855
"""
856-
if self.is_in_position(coords, True):
856+
if self.is_in_position(coords, JogMode.JOG_TELEOP):
857857
return True
858858
if not self._check_speed(speed):
859859
return False
@@ -902,7 +902,7 @@ def set_angles(self, angles, speed):
902902
angles (list[float]): joint angles, list[float] of size MAX_JOINTS
903903
speed (float): speed percentage (1 ~ 100 %)
904904
"""
905-
if self.is_in_position(angles, False):
905+
if self.is_in_position(angles, JogMode.JOG_JOINT):
906906
return True
907907
if not self._check_speed(speed):
908908
return False

0 commit comments

Comments
 (0)