Repository navigation
(Updated) Implement Mahony filter for attitude estimation- #142 #156
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
Merged
NArmistead
merged 53 commits into
feature/gravity-compensated-acceleration
from
bb-na/mahony-attitude-filter
Sep 29, 2026
Merged
Changes from all commits
Commits
Show all changes
53 commits
Select commit
Hold shift + click to select a range
eef806e
Start Mahony attitude filter with gyro propagation
bjornhbengtsson ff6d54f
Add proportional accelerometer correction to Mahony filter
bjornhbengtsson 3fd5916
Add Mahony attitude diagnostic output tests
bjornhbengtsson 9d5435c
Add accelerometer validity gating to Mahony filter
bjornhbengtsson 16a9fb8
Add integral correction and anti-windup to Mahony filter
bjornhbengtsson b977a6b
Integrate Mahony filter into sensor state estimation
bjornhbengtsson f40302c
Document Mahony gain tuning rationale
bjornhbengtsson 5ded58a
Convert Mahony attitude to world-to-body convention
bjornhbengtsson 735e37a
Update Mahony tests for renamed framework
bjornhbengtsson a174b39
Revert "Convert Mahony attitude to world-to-body convention"
bjornhbengtsson 563b054
Add Mahony status enum
bjornhbengtsson 9df0ec9
Handle Mahony status in sensor integration
bjornhbengtsson f5eb22d
Fix Mahony status check in release build
bjornhbengtsson 639b9c2
Sync sensor orientation and filter cleanup
bjornhbengtsson 74ae4d3
Propagate Mahony update failures
bjornhbengtsson a2ea0ee
Make identity quaternion const
bjornhbengtsson 052abe2
Format Mahony logical operators
bjornhbengtsson b52ac4c
Document Mahony helper functions
bjornhbengtsson 069384f
Restore eul_to_quat
NArmistead 6565214
Flip gravity world vector, style changes
NArmistead 330aa6a
Move vectors to math_sdr, update docs
NArmistead 2b36149
Disable yaw integral correction
NArmistead 43c9a54
Quick imu velo patch
NArmistead 6cf6008
nfc: identity quat macro, minor style changes
NArmistead 6ca0fbb
Fix and move mahony test to _test
NArmistead f080551
Merge attempt 2
NArmistead b1d0bb9
Some test updates
NArmistead 6236ae0
Add world-to-body quaternion vector rotation
bjornhbengtsson 5e1d5ee
Apply gravity compensation to velocity integration
bjornhbengtsson 3eb9b1f
Add math_sdr unit tests
bjornhbengtsson d7fa65f
Start Mahony attitude filter with gyro propagation
bjornhbengtsson 4e9ba51
Add proportional accelerometer correction to Mahony filter
bjornhbengtsson eefb111
Add Mahony attitude diagnostic output tests
bjornhbengtsson ad36b26
Add accelerometer validity gating to Mahony filter
bjornhbengtsson c764b0d
Add integral correction and anti-windup to Mahony filter
bjornhbengtsson 1d9e2dd
Integrate Mahony filter into sensor state estimation
bjornhbengtsson 1aa86d1
Document Mahony gain tuning rationale
bjornhbengtsson 376f861
Convert Mahony attitude to world-to-body convention
bjornhbengtsson 871ee53
Rename test directory and document NED frame
bjornhbengtsson 2bf17e2
Update Mahony tests for renamed framework
bjornhbengtsson 1d123db
Revert "Convert Mahony attitude to world-to-body convention"
bjornhbengtsson 4b01346
Add Mahony status enum
bjornhbengtsson 3ef2849
Sync sensor orientation and filter cleanup
bjornhbengtsson 3e7fe9a
Format Mahony logical operators
bjornhbengtsson b6588b0
Restore eul_to_quat
NArmistead 3d3c445
Flip gravity world vector, style changes
NArmistead e403920
Move vectors to math_sdr, update docs
NArmistead c6cab43
Disable yaw integral correction
NArmistead e212ae3
Quick imu velo patch
NArmistead 6897011
Fix and move mahony test to _test
NArmistead b7dce3f
Some test updates
NArmistead 38226b3
Rebase cleanup
NArmistead bec12d6
Addressing review
NArmistead File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| #ifndef TEST_MAHONY_MAIN_H | ||
| #define TEST_MAHONY_MAIN_H | ||
|
|
||
| #include <math.h> | ||
| #include <stddef.h> | ||
| #include <stdint.h> | ||
|
|
||
| #endif /* TEST_MAHONY_MAIN_H */ |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shouldnt be needed, test framework gitignore should handle this