optimierung

This commit is contained in:
2024-07-18 10:38:33 +02:00
parent 87d012086b
commit ffce232d47

View File

@@ -449,7 +449,9 @@ 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(0.5) while self.ser.out_waiting:
pass
self.ser.read_all()
except Exception as e: except Exception as e:
print(e) print(e)
#self.ser.write(b'Hallo\n') #self.ser.write(b'Hallo\n')