Jbrodovsky/issue108#113
Closed
jbrodovsky wants to merge 2 commits into
Closed
Conversation
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary: Comprehensive Integration Tests for INS Filters (Issue #108)
Changes Made
New Files Created
core/tests/integration_tests.rs(603 lines)core/tests/INTEGRATION_TESTS.mdModified Files
core/src/sim.rs(lines 751, 768)From<(&DateTime, &DVector, &DMatrix)>toFrom<(&DateTime, &StrapdownState)>Test Suite Overview
Tests Implemented
test_dead_reckoning_on_real_datatest_ukf_closed_loop_on_real_datatest_ukf_with_degraded_gnsstest_ukf_outperforms_dead_reckoningError Metrics (as specified in issue)
✅ Haversine distance for planar position error (latitude and longitude)
✅ Simple difference for altitude error
✅ Component-wise differences for velocity (N, E, D)
✅ Component-wise differences for orientation (roll, pitch, yaw)
Test Results
All tests pass successfully:
Typical Performance
UKF with full-rate GNSS:
UKF with degraded GNSS (5s updates):
Dead reckoning (for comparison):
Usage
Run all integration tests:
Run with visible output:
Runtime: ~4-5 minutes (processing 90 minutes of real sensor data)
Data Source
Tests use real sensor data from:
test_data.csvBenefits
Recommendations
References
CONTRIBUTING.mdandREADME.md