feature_lsp_com #8
14
main.py
14
main.py
@@ -440,13 +440,6 @@ class ArduinoGUI:
|
|||||||
self.csv_writer.writerow([formatted_time, formatted_angle, formatted_setpoint, formatted_torque, formatted_output])
|
self.csv_writer.writerow([formatted_time, formatted_angle, formatted_setpoint, formatted_torque, formatted_output])
|
||||||
|
|
||||||
|
|
||||||
except Exception as e:
|
|
||||||
print(e)
|
|
||||||
|
|
||||||
time.sleep(0.1)
|
|
||||||
|
|
||||||
def lsp_communication_loop(self):
|
|
||||||
while self.running:
|
|
||||||
if self.ser:
|
if self.ser:
|
||||||
if self.ser.in_waiting:
|
if self.ser.in_waiting:
|
||||||
try:
|
try:
|
||||||
@@ -465,9 +458,16 @@ class ArduinoGUI:
|
|||||||
try:
|
try:
|
||||||
pass
|
pass
|
||||||
self.connect_lsp()
|
self.connect_lsp()
|
||||||
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print(e)
|
print(e)
|
||||||
|
|
||||||
|
time.sleep(0.1)
|
||||||
|
|
||||||
|
def lsp_communication_loop(self):
|
||||||
|
while self.running:
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
def send_pid_parameters(self):
|
def send_pid_parameters(self):
|
||||||
if self.selected_pid in self.pid_params:
|
if self.selected_pid in self.pid_params:
|
||||||
|
|||||||
Reference in New Issue
Block a user