From b081c33748f6624125748faf8b8aee586e471a85 Mon Sep 17 00:00:00 2001 From: Musab Erdem Date: Thu, 18 Jul 2024 10:19:24 +0200 Subject: [PATCH] optimierung --- main.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/main.py b/main.py index 3751fb1..77d8dce 100644 --- a/main.py +++ b/main.py @@ -440,13 +440,6 @@ class ArduinoGUI: self.csv_writer.writerow([formatted_time, formatted_angle, formatted_setpoint, formatted_torque, formatted_output]) - except Exception as e: - print(e) - - time.sleep(0.1) - - def lsp_communication_loop(self): - while self.running: if self.ser: if self.ser.in_waiting: try: @@ -465,9 +458,16 @@ class ArduinoGUI: try: pass self.connect_lsp() + except Exception as e: print(e) + time.sleep(0.1) + + def lsp_communication_loop(self): + while self.running: + pass + def send_pid_parameters(self): if self.selected_pid in self.pid_params: