optimierung
This commit is contained in:
14
main.py
14
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:
|
||||
|
||||
Reference in New Issue
Block a user