Konfiguration und Serielle Schnittstelle aktualisiert.
This commit is contained in:
6
conf.txt
6
conf.txt
@@ -1,5 +1,5 @@
|
|||||||
150 Sekunden / 90 Grad{
|
150 Sekunden / 90 Grad{
|
||||||
Kp:0.0
|
Kp:0.03
|
||||||
Ki:0.1
|
Ki:0.04
|
||||||
Kd:0.0
|
Kd:0.00
|
||||||
}
|
}
|
||||||
3
main.py
3
main.py
@@ -198,7 +198,7 @@ class ArduinoGUI:
|
|||||||
com_port = self.combobox_value.get()
|
com_port = self.combobox_value.get()
|
||||||
if com_port:
|
if com_port:
|
||||||
try:
|
try:
|
||||||
self.arduino = serial.Serial(com_port, 115200, timeout=1)
|
self.arduino = serial.Serial(com_port, 19200, timeout=1)
|
||||||
messagebox.showinfo("Info", "Arduino verbunden an " + com_port)
|
messagebox.showinfo("Info", "Arduino verbunden an " + com_port)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
messagebox.showerror("Fehler", str(e))
|
messagebox.showerror("Fehler", str(e))
|
||||||
@@ -278,6 +278,7 @@ class ArduinoGUI:
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
print(self.arduino.readline())
|
print(self.arduino.readline())
|
||||||
|
#print(self.arduino.read_all())
|
||||||
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print(e)
|
print(e)
|
||||||
|
|||||||
Reference in New Issue
Block a user