Skip to content

add eta quat struct and utilities for quaternion pid - #17

Merged
Andeshog merged 7 commits into
mainfrom
feat/eta-quat
Nov 3, 2025
Merged

Andeshog merged 7 commits into
mainfrom
feat/eta-quat

Conversation

@Andeshog

@Andeshog Andeshog commented Nov 3, 2025

Copy link
Copy Markdown
Contributor

Some new additions you can use in your quat pid @ppakr @Q3rkses

@codecov

codecov Bot commented Nov 3, 2025 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.10%. Comparing base (0b38732) to head (c6b704b).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #17      +/-   ##
==========================================
+ Coverage   88.38%   98.10%   +9.71%     
==========================================
  Files           6        3       -3     
  Lines         594      369     -225     
  Branches      213       70     -143     
==========================================
- Hits          525      362     -163     
  Misses          4        4              
+ Partials       65        3      -62     
Flag Coverage Δ
unittests 98.10% <100.00%> (+9.71%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
include/vortex/utils/types.hpp 95.58% <100.00%> (+1.71%) ⬆️
src/math.cpp 95.06% <100.00%> (+0.94%) ⬆️

... and 2 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Q3rkses Q3rkses left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

other than preferences i think it LGTM

Comment thread cpp_test/test_math.cpp
0.90238159, -0.90929743, -0.35017549, -0.2248451;
Eigen::Matrix3d result = get_rotation_matrix(roll, pitch, yaw);
EXPECT_NEAR(0.0, matrix_norm_diff(expected, result), 0.01);
EXPECT_TRUE(result.isApprox(expected, 1e-8));

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1e-8, 1e-12, 1e-3 seem a bit arbitrary. One maybe we should unify them or two maybe we should simply declare them as constants at the top.

#define MAGIC_TOLERANCE_1 1e-12,

with suitable name like strict and loose bound or more specific like controller or transformation tolerance ...

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah but its just test code so who cares 🤷

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thats why i approved ¯_(ツ)_/¯

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

my leader

@Andeshog Andeshog linked an issue Nov 3, 2025 that may be closed by this pull request
3 tasks
@Andeshog
Andeshog merged commit 152f8a2 into main Nov 3, 2025
5 checks passed
@Andeshog
Andeshog deleted the feat/eta-quat branch November 3, 2025 18:57
@github-actions

github-actions Bot commented Nov 4, 2025

Copy link
Copy Markdown

🎉 This PR is included in version 1.6.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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.

[TASK] EtaQuat struct

2 participants