mirror of
https://github.com/brendanhaines/ECEN5458_Project.git
synced 2024-12-26 10:57:55 -07:00
fix parsing of controller model
This commit is contained in:
parent
c5972a2ede
commit
f5de7a7cec
|
@ -1,5 +1,7 @@
|
||||||
import time
|
import time
|
||||||
import numpy as np
|
import numpy as np
|
||||||
|
from scipy import signal
|
||||||
|
from scipy.signal import TransferFunction
|
||||||
|
|
||||||
import board
|
import board
|
||||||
import busio
|
import busio
|
||||||
|
@ -205,7 +207,7 @@ def stop_controller(attrname=None, old=None, new=None):
|
||||||
def update_models(attrname=None, old=None, new=None):
|
def update_models(attrname=None, old=None, new=None):
|
||||||
stop_controller()
|
stop_controller()
|
||||||
try:
|
try:
|
||||||
exec(controller_model_text.value)
|
exec("global D\n" + controller_model_text.value)
|
||||||
print("INFO: controller model updated")
|
print("INFO: controller model updated")
|
||||||
print(D)
|
print(D)
|
||||||
except:
|
except:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user