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

Kalman Filter #783

Draft
wants to merge 10 commits into
base: emuflight-1.0.0-master
Choose a base branch
from

Conversation

nerdCopter
Copy link
Member

@nerdCopter nerdCopter commented Mar 29, 2022

This pull request adds the kalman filter into 1.0.0, Please debug this with the debug mode kalman turned on. Looking to verify that the latency and attenuation is the same as Emu 0.4.0. To tune this filter a higher Q value will reduce filtering as well as a higher W.

Possible future improvements, allow the Q value to move with throttle. Reduce the range on the kalman Q AKA instead of a 100-16000 range reduce it to a 1-100 range. Don't know how we will want to do this yet. Add ability to tune the variance scale, perhaps this could be the method for tuning noise rather than q

@nerdCopter nerdCopter changed the base branch from master to emuflight-1.0.0-master March 29, 2022 19:05
@nerdCopter nerdCopter marked this pull request as draft May 2, 2022 13:17
@nerdCopter nerdCopter force-pushed the 20220319_cherry_pick_Kalman_Filter branch from 6bff03a to 0c1fdd8 Compare May 26, 2022 13:28
@nerdCopter
Copy link
Member Author

nerdCopter commented May 26, 2022

Uniitests wont succeed:

./src/main/common/kalman.c:22:10: fatal error: arm_math.h: No such file or directory
   22 | #include "arm_math.h"
      |          ^~~~~~~~~~~~
compilation terminated.

SITL Simulator wont compile:

./src/main/common/kalman.c:22:10: fatal error: arm_math.h: No such file or directory
   22 | #include "arm_math.h"
      |          ^~~~~~~~~~~~
compilation terminated.
make[2]: *** [Makefile:442: obj/main/SITL/common/kalman.o] Error 1

@nerdCopter nerdCopter force-pushed the 20220319_cherry_pick_Kalman_Filter branch from 0c1fdd8 to 3f5286b Compare May 26, 2022 15:49
@nerdCopter nerdCopter force-pushed the 20220319_cherry_pick_Kalman_Filter branch from 3f5286b to 4ead68f Compare June 2, 2022 15:02
@nerdCopter nerdCopter force-pushed the emuflight-1.0.0-master branch 2 times, most recently from 0c4ee8b to 3aab740 Compare June 11, 2022 20:52
@nerdCopter nerdCopter force-pushed the 20220319_cherry_pick_Kalman_Filter branch from 4ead68f to 06b244b Compare July 6, 2022 16:23
@nerdCopter nerdCopter force-pushed the 20220319_cherry_pick_Kalman_Filter branch from 06b244b to 9320873 Compare July 15, 2022 14:47
@nerdCopter nerdCopter force-pushed the emuflight-1.0.0-master branch 2 times, most recently from fe70257 to fe7710c Compare November 22, 2022 19:11
@nerdCopter nerdCopter force-pushed the 20220319_cherry_pick_Kalman_Filter branch from 9320873 to 1683b88 Compare November 22, 2022 19:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants