feature_lsp_com #8
4
main.py
4
main.py
@@ -449,7 +449,9 @@ class ArduinoGUI:
|
||||
if command == 'a':
|
||||
message = f"{self.current_angle};{self.current_torque};{self.analogInput};{self.currentSetpoint};{self.currentOutput}\n"
|
||||
self.ser.write(message.encode())
|
||||
time.sleep(0.5)
|
||||
while self.ser.out_waiting:
|
||||
pass
|
||||
self.ser.read_all()
|
||||
except Exception as e:
|
||||
print(e)
|
||||
#self.ser.write(b'Hallo\n')
|
||||
|
||||
Reference in New Issue
Block a user