Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

synthetic data and notebook #109

Open
jerabaul29 opened this issue Dec 9, 2022 · 1 comment
Open

synthetic data and notebook #109

jerabaul29 opened this issue Dec 9, 2022 · 1 comment

Comments

@jerabaul29
Copy link
Collaborator

The signal processing algorithms can be really tricky to get right; I think the best / only way to make sure they work correctly would be to use some synthetic data in and compare with the output; for example generate a synthetic signal that corresponds to a sensor that:

  • goes up and down following a given sinusoidal (possibly with random amplitude and frequency varying slowly in time)
  • tilts in X and Y directions following a given sinusoidal (possibly with random amplitude and frequency varying slowly in time)
  • has a given N(0, sigma_channel) known noise on each channel independently

this can be sampled at any frequency, filtered by the Kalman filter, and compared to the true value.

Doing so would be the "ultimate" test that all is correct.

@gauteh
Copy link
Owner

gauteh commented Dec 12, 2022

There is a python interface here: https://github.com/gauteh/ahrs-fusion/blob/main/python/tests/test_nxp.py which should make it easy to test the Kalman filter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants