Skip to content
Merged
Show file tree
Hide file tree
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 Jul 24, 2026
ff6d54f
Add proportional accelerometer correction to Mahony filter
bjornhbengtsson Jul 25, 2026
3fd5916
Add Mahony attitude diagnostic output tests
bjornhbengtsson Jul 25, 2026
9d5435c
Add accelerometer validity gating to Mahony filter
bjornhbengtsson Jul 25, 2026
16a9fb8
Add integral correction and anti-windup to Mahony filter
bjornhbengtsson Jul 25, 2026
b977a6b
Integrate Mahony filter into sensor state estimation
bjornhbengtsson Jul 26, 2026
f40302c
Document Mahony gain tuning rationale
bjornhbengtsson Jul 27, 2026
5ded58a
Convert Mahony attitude to world-to-body convention
bjornhbengtsson Aug 3, 2026
735e37a
Update Mahony tests for renamed framework
bjornhbengtsson Aug 3, 2026
a174b39
Revert "Convert Mahony attitude to world-to-body convention"
bjornhbengtsson Aug 7, 2026
563b054
Add Mahony status enum
bjornhbengtsson Aug 9, 2026
9df0ec9
Handle Mahony status in sensor integration
bjornhbengtsson Aug 9, 2026
f5eb22d
Fix Mahony status check in release build
bjornhbengtsson Aug 9, 2026
639b9c2
Sync sensor orientation and filter cleanup
bjornhbengtsson Aug 14, 2026
74ae4d3
Propagate Mahony update failures
bjornhbengtsson Aug 14, 2026
a2ea0ee
Make identity quaternion const
bjornhbengtsson Aug 14, 2026
052abe2
Format Mahony logical operators
bjornhbengtsson Aug 14, 2026
b52ac4c
Document Mahony helper functions
bjornhbengtsson Aug 14, 2026
069384f
Restore eul_to_quat
NArmistead Sep 18, 2026
6565214
Flip gravity world vector, style changes
NArmistead Sep 21, 2026
330aa6a
Move vectors to math_sdr, update docs
NArmistead Sep 21, 2026
2b36149
Disable yaw integral correction
NArmistead Sep 23, 2026
43c9a54
Quick imu velo patch
NArmistead Sep 23, 2026
6cf6008
nfc: identity quat macro, minor style changes
NArmistead Sep 25, 2026
6ca0fbb
Fix and move mahony test to _test
NArmistead Sep 25, 2026
f080551
Merge attempt 2
NArmistead Sep 25, 2026
b1d0bb9
Some test updates
NArmistead Sep 25, 2026
6236ae0
Add world-to-body quaternion vector rotation
bjornhbengtsson Jul 21, 2026
5e1d5ee
Apply gravity compensation to velocity integration
bjornhbengtsson Jul 21, 2026
3eb9b1f
Add math_sdr unit tests
bjornhbengtsson Jul 24, 2026
d7fa65f
Start Mahony attitude filter with gyro propagation
bjornhbengtsson Jul 24, 2026
4e9ba51
Add proportional accelerometer correction to Mahony filter
bjornhbengtsson Jul 25, 2026
eefb111
Add Mahony attitude diagnostic output tests
bjornhbengtsson Jul 25, 2026
ad36b26
Add accelerometer validity gating to Mahony filter
bjornhbengtsson Jul 25, 2026
c764b0d
Add integral correction and anti-windup to Mahony filter
bjornhbengtsson Jul 25, 2026
1d9e2dd
Integrate Mahony filter into sensor state estimation
bjornhbengtsson Jul 26, 2026
1aa86d1
Document Mahony gain tuning rationale
bjornhbengtsson Jul 27, 2026
376f861
Convert Mahony attitude to world-to-body convention
bjornhbengtsson Aug 3, 2026
871ee53
Rename test directory and document NED frame
bjornhbengtsson Jul 25, 2026
2bf17e2
Update Mahony tests for renamed framework
bjornhbengtsson Aug 3, 2026
1d123db
Revert "Convert Mahony attitude to world-to-body convention"
bjornhbengtsson Aug 7, 2026
4b01346
Add Mahony status enum
bjornhbengtsson Aug 9, 2026
3ef2849
Sync sensor orientation and filter cleanup
bjornhbengtsson Aug 14, 2026
3e7fe9a
Format Mahony logical operators
bjornhbengtsson Aug 14, 2026
b6588b0
Restore eul_to_quat
NArmistead Sep 18, 2026
3d3c445
Flip gravity world vector, style changes
NArmistead Sep 21, 2026
e403920
Move vectors to math_sdr, update docs
NArmistead Sep 21, 2026
c6cab43
Disable yaw integral correction
NArmistead Sep 23, 2026
e212ae3
Quick imu velo patch
NArmistead Sep 23, 2026
6897011
Fix and move mahony test to _test
NArmistead Sep 25, 2026
b7dce3f
Some test updates
NArmistead Sep 25, 2026
38226b3
Rebase cleanup
NArmistead Sep 27, 2026
bec12d6
Addressing review
NArmistead Sep 29, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions _test/math_sdr/main.h

This file was deleted.

286 changes: 0 additions & 286 deletions _test/math_sdr/test_math_sdr.c

This file was deleted.

Copy link
Copy Markdown
Member

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

File renamed without changes.
23 changes: 14 additions & 9 deletions _test/math_sdr/Makefile → _test/mod/mahony/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
################################################################
# target
################################################################
TARGET = math_sdr
TARGET = mahony

################################################################
# build variables
Expand All @@ -18,21 +18,24 @@ OPT = -Og
################################################################
# paths
################################################################

BUILD_DIR = build
ROOT_DIR = ../..
ROOT_DIR = ../../../..
FRAMEWORK_DIR = ../../framework

################################################################
# source
################################################################
TEST_SOURCES = \
test_math_sdr.c
test_mahony.c

COV_C_SOURCES = \
$(ROOT_DIR)/math_sdr/math_sdr.c
$(ROOT_DIR)/mod/mahony/mahony.c \
$(ROOT_DIR)/mod/math_sdr/math_sdr.c

FRAMEWORK_SOURCES = \
$(ROOT_DIR)/_test/framework/src/test_assert.c \
$(ROOT_DIR)/_test/framework/src/test_runner.c
$(FRAMEWORK_DIR)/src/test_assert.c \
$(FRAMEWORK_DIR)/src/test_runner.c

C_SOURCES = $(TEST_SOURCES) $(COV_C_SOURCES) $(FRAMEWORK_SOURCES)

Expand All @@ -46,8 +49,9 @@ CC = gcc
################################################################
C_INCLUDES = \
-I. \
-I$(ROOT_DIR)/math_sdr \
-I$(ROOT_DIR)/_test/framework/src
-I$(ROOT_DIR)/mod/mahony \
-I$(ROOT_DIR)/mod/math_sdr \
-I$(FRAMEWORK_DIR)/src

C_DEFS = \
-DUNIT_TEST
Expand Down Expand Up @@ -92,7 +96,8 @@ test:
tail -n 7 "results.txt"
mkdir -p coverage
gcovr $(BUILD_DIR) \
--filter $(COV_C_SOURCES) \
--filter '.*(?<!test_)mahony[.]c$$' \
--filter '.*(?<!test_)math_sdr[.]c$$' \
--html-details coverage/coverage.html \
--json coverage/coverage.json

Expand Down
8 changes: 8 additions & 0 deletions _test/mod/mahony/main.h
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 */
Loading
Loading