feature_lsp_com #8

Merged
musabe24 merged 17 commits from feature_lsp_com into main 2024-07-18 12:26:59 +02:00
Showing only changes of commit 87d012086b - Show all commits

12
main.py
View File

@@ -44,8 +44,6 @@ class ArduinoGUI:
self.load_configurations()
# Start the communication thread
self.lsp_communication_tread = threading.Thread(target=self.lsp_communication_loop)
self.lsp_communication_tread.start()
self.communication_thread = threading.Thread(target=self.communication_loop)
self.communication_thread.start()
@@ -275,7 +273,7 @@ class ArduinoGUI:
pass
if serPort != None:
self.ser = serial.Serial(serPort, 19200, timeout=1)
self.ser = serial.Serial(serPort, 9600, timeout=1)
print(F"Slave Port bereit an {serPort}")
except Exception as e:
print(F"Fehler beim Öffnen des Slave Ports an {serPort}")
@@ -439,8 +437,6 @@ class ArduinoGUI:
self.csv_writer.writerow([formatted_time, formatted_angle, formatted_setpoint, formatted_torque, formatted_output])
except Exception as e:
print(e)
@@ -466,12 +462,6 @@ class ArduinoGUI:
time.sleep(0.1)
def lsp_communication_loop(self):
time.sleep(10)
while self.running:
pass
def send_pid_parameters(self):
if self.selected_pid in self.pid_params:
pid_values = self.pid_params[self.selected_pid]