Skip to content
This repository has been archived by the owner on Sep 29, 2024. It is now read-only.

Commit

Permalink
upd
Browse files Browse the repository at this point in the history
  • Loading branch information
mgrouch committed Nov 5, 2022
1 parent 929db84 commit 113bd4b
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions pos-from-accel.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
from pykalman import KalmanFilter
from scipy import linalg
import numpy as np
import matplotlib.pyplot as plt

Data = np.loadtxt(fname="test-data-no-noise.txt", delimiter=",", skiprows=0)

# Data description
# Time
# AccX - acceleration signal
# RefPosX - real position (ground truth)
# RefVelX - real velocity (ground truth)

Time = Data[:, [0]]
AccX = Data[:, [1]]
RefPosX = Data[:, [2]]
RefVelX = Data[:, [3]]


plt.plot(AccX, RefPosX, "r-")
plt.grid()
plt.show()

0 comments on commit 113bd4b

Please sign in to comment.