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

@ -8,7 +8,7 @@ with open('README.md', 'r') as f:
setup(
name='spatz',
version='0.0.10',
package_dir={'': 'spatz'},
packages=find_packages(where='spatz'),
long_description=longdescription
packages=find_packages(exclude=["_tests"]),
long_description=longdescription,
long_description_content_type='text/markdown',
)

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:

View File

@ -2,9 +2,11 @@ from typing import Any, List
from numpy.linalg import norm
from numpy.typing import ArrayLike
from pandas import NA
from spatz.dataset import ArrayLike, Dataset
from spatz.logger import ArrayLike, Logger
from spatz.sensors import Sensor, NA
from spatz.sensors import Sensor
from spatz.transforms import Transform
# WG84 googlen (world model GPS)