- refactored

This commit is contained in:
jens
2020-12-16 17:13:57 +01:00
parent fa93a3911e
commit 6dd0920010
3 changed files with 3 additions and 5 deletions
+2 -3
View File
@@ -1,10 +1,10 @@
import numpy as np import numpy as np
from numpy.linalg import inv from numpy.linalg import inv
from matplotlib.pyplot import plot, figure, subplot, title, xlabel, ylabel, grid, show from matplotlib.pyplot import plot, figure, subplot, grid, show
class Kalman: class Kalman:
def __init__(self, params={}): def __init__(self, params):
dt = params['dt'] dt = params['dt']
var_P = params['var_P'] var_P = params['var_P']
var_Q = params['var_Q'] var_Q = params['var_Q']
@@ -132,4 +132,3 @@ if __name__ == '__main__':
show() show()
print("End of program") print("End of program")
-1
View File
@@ -1,4 +1,3 @@
import numpy as np
class Pid: class Pid:
+1 -1
View File
@@ -1,5 +1,5 @@
from components.plant.pot import Pot from components.plant.pot import Pot
from matplotlib.pyplot import plot, figure, subplot, title, xlabel, ylabel, grid, show, legend from matplotlib.pyplot import plot, figure, subplot, grid, show, legend
from components.pid import Pid, Kalman from components.pid import Pid, Kalman
import numpy as np import numpy as np
from utils.value import AttributeChange from utils.value import AttributeChange