Created basic outline of Displayer class

This commit is contained in:
Andreas Tsouchlos
2022-04-21 15:59:33 +02:00
parent f74f06f46f
commit 2141f7d833
11 changed files with 55 additions and 7 deletions

13
examples/gps_fusion.py Normal file
View File

@@ -0,0 +1,13 @@
import matplotlib.pyplot as plt
import numpy as np
from time import sleep
from matplotlib.animation import FuncAnimation
from display.dislpay_2d import Displayer
def run():
disp = Displayer(width=6, height=6)
# disp.show_object([1, 1], 4, "green")
disp.animate(n_steps = 100)

BIN
examples/gps_fusion.pyc Normal file

Binary file not shown.

View File

@@ -1,4 +1,3 @@
from filter.kalman_filter import LinearKalmanFilter
import matplotlib.pyplot as plt
import csv
import numpy as np
@@ -53,7 +52,7 @@ The reset of the parameters are empirically determined
"""
def simulate(kalman_filter_t):
def run(kalman_filter_t):
# Read data
x0_actual = [48.993552704, 8.371038159]

Binary file not shown.

View File

@@ -1,4 +1,3 @@
from filter.kalman_filter import LinearKalmanFilter
import matplotlib.pyplot as plt
import numpy as np
@@ -25,7 +24,7 @@ The reset of the parameters are empirically determined
"""
def simulate(kalman_filter_t):
def run(kalman_filter_t):
# Simulation parameter definitions
n_iterations = 500

Binary file not shown.