optimierung

This commit is contained in:
2024-07-18 10:13:42 +02:00
parent 48d347fb06
commit 5531952667

View File

@@ -455,6 +455,7 @@ class ArduinoGUI:
if command == 'a': if command == 'a':
message = f"{self.current_angle};{self.current_torque};{self.analogInput};{self.currentSetpoint};{self.currentOutput}\n" message = f"{self.current_angle};{self.current_torque};{self.analogInput};{self.currentSetpoint};{self.currentOutput}\n"
self.ser.write(message.encode()) self.ser.write(message.encode())
time.sleep(1)
while self.ser.out_waiting: while self.ser.out_waiting:
pass pass
except Exception as e: except Exception as e: