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