Updated setup class and kalman filter class

This commit is contained in:
dario
2023-12-17 23:33:31 +01:00
parent 83c8374027
commit f5f30953ca
3 changed files with 18 additions and 7 deletions

View File

@@ -1,10 +1,19 @@
from typing import Any
def A(dt: float):
return [[dt, 0], [0, 1]]
class KalmanFilter:
def __init__(self) -> None:
pass
def __init__(self, A, B) -> None:
self.__A = A
self.__B = B
def predict(self, dt: float) -> None:
self.__A(dt)
def predict(self) -> None:
pass
def correct(self) -> None: