From d7145953dfc5a404368215bd9bd1a49ca82166fb Mon Sep 17 00:00:00 2001 From: jack G <49022851+ZiJace@users.noreply.github.com> Date: Fri, 26 Jul 2019 17:36:56 +0800 Subject: [PATCH] Update Main.py test --- Code/Client/Main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Code/Client/Main.py b/Code/Client/Main.py index 3203e80..52c60fe 100644 --- a/Code/Client/Main.py +++ b/Code/Client/Main.py @@ -647,8 +647,8 @@ class mywindow(QMainWindow,Ui_Client): if face_x!=0 and face_y!=0: offset_x=float(face_x/400-0.5)*2 offset_y=float(face_y/300-0.5)*2 - delta_degree_x = 4.5* offset_x - delta_degree_y = -4.5 * offset_y + delta_degree_x = 4* offset_x + delta_degree_y = -4 * offset_y self.servo1=self.servo1+delta_degree_x self.servo2=self.servo2+delta_degree_y if offset_x > -0.15 and offset_y >-0.15 and offset_x < 0.15 and offset_y <0.15: