Conversation
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
There was a problem hiding this comment.
Pull request overview
This PR adds functionality to reproduce heading gate results from Bart by making a bug fix to handle edge cases in quaternion-to-Euler conversion and adding a comprehensive test example. The changes include fixing a numerical stability issue, reorganizing imports/exports for better readability, and creating a new example file to test heading calculations for kites flying in circular patterns.
Changes:
- Fixed numerical stability issue in
quat2eulerby clamping the input toasinto prevent domain errors - Reorganized imports and exports in
KiteUtils.jlto be alphabetically sorted - Added new comprehensive example
test_heading.jlthat simulates kites flying in circular patterns and calculates/plots heading angles
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| src/transformations.jl | Added clamp to prevent domain errors in asin when converting quaternions to Euler angles |
| src/KiteUtils.jl | Reorganized imports and exports alphabetically for better code organization |
| examples/test_heading.jl | New comprehensive test file with functions to calculate elevation, azimuth, orientation, and heading for kites flying in circular patterns, including visualization |
| examples/Project.toml | Added Rotations dependency needed by the new test file |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
examples/test_heading.jl
Outdated
| pd_labels = String[] | ||
|
|
||
| for θ in theta | ||
| local rf, dt |
There was a problem hiding this comment.
The variables rf and dt are declared but never used in this loop. Remove the unused variable declaration.
| local rf, dt | |
| local dt |
Uh oh!
There was an error while loading. Please reload this page.