- refactored
This commit is contained in:
@@ -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")
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import numpy as np
|
||||
|
||||
|
||||
class Pid:
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user