diff --git a/components/pid/kalman.py b/components/pid/kalman.py index a2e9d36..ce012e8 100644 --- a/components/pid/kalman.py +++ b/components/pid/kalman.py @@ -1,10 +1,10 @@ import numpy as np 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: - def __init__(self, params={}): + def __init__(self, params): dt = params['dt'] var_P = params['var_P'] var_Q = params['var_Q'] @@ -132,4 +132,3 @@ if __name__ == '__main__': show() print("End of program") - diff --git a/components/pid/pid.py b/components/pid/pid.py index f1a7c0a..d0905a2 100644 --- a/components/pid/pid.py +++ b/components/pid/pid.py @@ -1,4 +1,3 @@ -import numpy as np class Pid: diff --git a/components/pid/temp_controller.py b/components/pid/temp_controller.py index 81a6161..507a6f5 100644 --- a/components/pid/temp_controller.py +++ b/components/pid/temp_controller.py @@ -1,5 +1,5 @@ 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 import numpy as np from utils.value import AttributeChange