diff --git a/gesture_control/arm_control.py b/gesture_control/arm_control.py index c5e6b6a..8a4cd21 100644 --- a/gesture_control/arm_control.py +++ b/gesture_control/arm_control.py @@ -162,7 +162,7 @@ class ArmController: error = 35 - if np.deg2rad(180 - error)> angle_elbow_wirst_right > np.deg2rad(180 + error): + if np.deg2rad(180 - error) < angle_elbow_wirst_right < np.deg2rad(180 + error): angular = 0 elif np.deg2rad(180 - error) > angle_elbow_wirst_right: @@ -176,6 +176,7 @@ class ArmController: angular = 0 angular = angular / 2 + #print(f"Test: {angular} {angle_elbow_wirst_right}") #left_shoulder_y = landmarks[11][1]