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