Repository navigation
feat: improve and extend kalman filter - #100
Conversation
✅
|
| Descriptor | Linter | Files | Fixed | Errors | Warnings | Elapsed time |
|---|---|---|---|---|---|---|
| ✅ ACTION | actionlint | 6 | 0 | 0 | 0.07s | |
| ✅ CPP | clang-format | 206 | 1 | 0 | 0 | 1.03s |
| ✅ CPP | cppcheck | 206 | 0 | 0 | 7.26s | |
| ✅ DOCKERFILE | hadolint | 1 | 0 | 0 | 0.09s | |
| ✅ JSON | jsonlint | 8 | 0 | 0 | 0.4s | |
| ✅ JSON | prettier | 8 | 8 | 0 | 0 | 0.65s |
| markdownlint | 43 | 1 | 19 | 0 | 2.54s | |
| ✅ MARKDOWN | markdown-table-formatter | 43 | 3 | 0 | 0 | 0.28s |
| lychee | 140 | 24 | 0 | 1.54s | ||
| ✅ YAML | prettier | 13 | 6 | 0 | 0 | 0.78s |
| ✅ YAML | yamllint | 13 | 0 | 0 | 0.74s |
Detailed Issues
⚠️ SPELL / lychee - 24 errors
[ERROR] https://gitlab-ci-token/ | Network error: error sending request for url (https://gitlab-ci-token/) Maybe a certificate error?
[IGNORED] url.https://github.com/.insteadOf | Unsupported: Error creating request client: builder error for url (url.https://github.com/.insteadOf)
[404] https://github.com/embedded-pro/embedded-numerical-toolbox/issues/27 | Network error: Not Found
[404] https://github.com/embedded-pro/embedded-numerical-toolbox/issues/26 | Network error: Not Found
[404] https://github.com/embedded-pro/embedded-numerical-toolbox/issues/12 | Network error: Not Found
[404] https://github.com/embedded-pro/embedded-numerical-toolbox/issues/6 | Network error: Not Found
[ERROR] file://doc/filters/solvers/DiscreteAlgebraicRiccatiEquation.md | Cannot find file
[ERROR] file://doc/filters/controllers/Lqr.md | Cannot find file
[ERROR] file://doc/filters/controllers/Pid.md | Cannot find file
[ERROR] file://doc/math/Geometry3D.md | Cannot find file
[403] https://gitlab.com/embedded-library/infrastructure/embedded-infra-lib.git | Network error: Forbidden
[404] https://github.com/embedded-pro/embedded-numerical-toolbox/issues/15 | Network error: Not Found
[404] https://github.com/embedded-pro/embedded-numerical-toolbox/issues/9 | Network error: Not Found
[404] https://github.com/embedded-pro/embedded-numerical-toolbox/issues/24 | Network error: Not Found
[404] https://github.com/embedded-pro/embedded-numerical-toolbox/issues/13 | Network error: Not Found
[404] https://github.com/embedded-pro/embedded-numerical-toolbox/issues/3 | Network error: Not Found
[404] https://github.com/embedded-pro/embedded-numerical-toolbox/issues/4 | Network error: Not Found
[404] https://github.com/embedded-pro/embedded-numerical-toolbox/issues/18 | Network error: Not Found
[404] https://github.com/embedded-pro/embedded-numerical-toolbox/issues/7 | Network error: Not Found
[404] https://github.com/embedded-pro/embedded-numerical-toolbox/issues/1 | Network error: Not Found
[403] https://gitlab.com/embedded-library/infrastructure/hal-st.git | Network error: Forbidden
[404] https://github.com/embedded-pro/embedded-numerical-toolbox/issues/2 | Network error: Not Found
[403] https://developer.arm.com/documentation/dui0473/latest | Network error: Forbidden
[403] https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-$ | Network error: Forbidden
[403] https://developer.arm.com/documentation/100166/latest/ | Network error: Forbidden
📝 Summary
---------------------
🔍 Total..........194
✅ Successful.....161
⏳ Timeouts.........0
🔀 Redirected.......0
👻 Excluded.........8
❓ Unknown..........0
🚫 Errors..........24
Errors in .github/workflows/static-analysis.yml
[403] https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-$ | Network error: Forbidden
Errors in .gitlab-ci.yml
[ERROR] https://gitlab-ci-token/ | Network error: error sending request for url (https://gitlab-ci-token/) Maybe a certificate error?
[403] https://gitlab.com/embedded-library/infrastructure/embedded-infra-lib.git | Network error: Forbidden
[403] https://gitlab.com/embedded-library/infrastructure/hal-st.git | Network error: Forbidden
Errors in doc/kinematics/ForwardKinematics.md
[ERROR] file://doc/math/Geometry3D.md | Cannot find file
Errors in doc/performance-optimization/README.md
[403] https://developer.arm.com/documentation/100166/latest/ | Network error: Forbidden
[403] https://developer.arm.com/documentation/dui0473/latest | Network error: Forbidden
Errors in CHANGELOG.md
[404] https://github.com/embedded-pro/embedded-numerical-toolbox/issues/12 | Network error: Not Found
[404] https://github.com/embedded-pro/embedded-numerical-toolbox/issues/7 | Network error: Not Found
[404] https://github.com/embedded-pro/embedded-numerical-toolbox/issues/15 | Network error: Not Found
[404] https://github.com/embedded-pro/embedded-numerical-toolbox/issues/1 | Network error: Not Found
[404] https://github.com/embedded-pro/embedded-numerical-toolbox/issues/9 | Network error: Not Found
[404] https://github.com/embedded-pro/embedded-numerical-toolbox/issues/27 | Network error: Not Found
[404] https://github.com/embedded-pro/embedded-numerical-toolbox/issues/24 | Network error: Not Found
[404] https://github.com/embedded-pro/embedded-numerical-toolbox/issues/3 | Network error: Not Found
[404] https://github.com/embedded-pro/embedded-numerical-toolbox/issues/2 | Network error: Not Found
[404] https://github.com/embedded-pro/embedded-numerical-toolbox/issues/6 | Network error: Not Found
[404] https://github.com/embedded-pro/embedded-numerical-toolbox/issues/26 | Network error: Not Found
[404] https://github.com/embedded-pro/embedded-numerical-toolbox/issues/4 | Network error: Not Found
[404] https://github.com/embedded-pro/embedded-numerical-toolbox/issues/18 | Network error: Not Found
[404] https://github.com/embedded-pro/embedded-numerical-toolbox/issues/13 | Network error: Not Found
Errors in doc/filters/active/KalmanFilter.md
[ERROR] file://doc/filters/solvers/DiscreteAlgebraicRiccatiEquation.md | Cannot find file
[ERROR] file://doc/filters/controllers/Pid.md | Cannot find file
[ERROR] file://doc/filters/controllers/Lqr.md | Cannot find file
⚠️ MARKDOWN / markdownlint - 19 errors
doc/analysis/PowerDensitySpectrum.md:5:401 error MD013/line-length Line length [Expected: 400; Actual: 509]
doc/analysis/PowerDensitySpectrum.md:104:20 error MD056/table-column-count Table column count [Expected: 2; Actual: 6; Too many cells, extra data will be missing]
doc/analysis/PowerDensitySpectrum.md:104:17 error MD060/table-column-style Table column style [Table pipe does not align with header for style "aligned"]
doc/analysis/PowerDensitySpectrum.md:104:20 error MD060/table-column-style Table column style [Table pipe does not align with header for style "aligned"]
doc/analysis/PowerDensitySpectrum.md:104:32 error MD060/table-column-style Table column style [Table pipe does not align with header for style "aligned"]
doc/analysis/PowerDensitySpectrum.md:104:38 error MD060/table-column-style Table column style [Table pipe does not align with header for style "aligned"]
doc/analysis/PowerDensitySpectrum.md:104:45 error MD060/table-column-style Table column style [Table pipe does not align with header for style "aligned"]
doc/analysis/PowerDensitySpectrum.md:104:135 error MD060/table-column-style Table column style [Table pipe does not align with header for style "aligned"]
doc/analysis/RootLocus.md:69 error MD040/fenced-code-language Fenced code blocks should have a language specified [Context: "```"]
doc/analysis/RootLocus.md:113:13 error MD060/table-column-style Table column style [Table pipe is missing space to the left for style "compact"]
doc/analysis/RootLocus.md:113:27 error MD060/table-column-style Table column style [Table pipe is missing space to the left for style "compact"]
doc/analysis/RootLocus.md:113:1 error MD060/table-column-style Table column style [Table pipe is missing space to the right for style "compact"]
doc/analysis/RootLocus.md:113:13 error MD060/table-column-style Table column style [Table pipe is missing space to the right for style "compact"]
doc/filters/active/UnscentedKalmanFilter.md:11:401 error MD013/line-length Line length [Expected: 400; Actual: 468]
doc/neural_network/regularization/Regularization.md:100:32 error MD060/table-column-style Table column style [Table pipe does not align with header for style "aligned"]
doc/neural_network/regularization/Regularization.md:100:135 error MD060/table-column-style Table column style [Table pipe does not align with header for style "aligned"]
doc/windowing/window.md:5:401 error MD013/line-length Line length [Expected: 400; Actual: 415]
README.md:1 error MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "[
- Documentation: Custom Flavors
- Command:
npx mega-linter-runner@9.4.0 --custom-flavor-setup --custom-flavor-linters ACTION_ACTIONLINT,CPP_CPPCHECK,CPP_CLANG_FORMAT,DOCKERFILE_HADOLINT,JSON_JSONLINT,JSON_PRETTIER,MARKDOWN_MARKDOWNLINT,MARKDOWN_MARKDOWN_TABLE_FORMATTER,SPELL_LYCHEE,YAML_PRETTIER,YAML_YAMLLINT

Show us your support by starring ⭐ the repository
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
This PR extends the Kalman filtering capabilities by adding EKF/UKF implementations (with supporting linear algebra), improving the existing KF implementation, and introducing a Qt-based simulator UI for visualizing pendulum state estimation.
Changes:
- Added Qt simulator application (main window, configuration panel, chart rendering) to run and visualize KF/EKF/UKF traces.
- Refactored/extended the active filters module with a shared
KalmanFilterBase, plus newExtendedKalmanFilterandUnscentedKalmanFilter. - Added Cholesky decomposition (used by UKF sigma point generation) with accompanying documentation and new unit tests.
Reviewed changes
Copilot reviewed 36 out of 36 changed files in this pull request and generated 8 comments.
Show a summary per file
| File | Description |
|---|---|
| simulator/filters/KalmanFilter/view/KalmanMainWindow.hpp | Adds main Qt window class for the Kalman simulator UI. |
| simulator/filters/KalmanFilter/view/KalmanMainWindow.cpp | Implements UI wiring and simulation execution/display logic. |
| simulator/filters/KalmanFilter/view/KalmanConfigPanel.hpp | Adds configuration panel interface for simulation parameters. |
| simulator/filters/KalmanFilter/view/KalmanConfigPanel.cpp | Implements parameter inputs and config extraction. |
| simulator/filters/KalmanFilter/view/KalmanChartWidget.hpp | Declares chart widget and derived chart types for different series. |
| simulator/filters/KalmanFilter/view/KalmanChartWidget.cpp | Implements custom chart rendering and data range computation. |
| simulator/filters/KalmanFilter/view/CMakeLists.txt | Builds the simulator view library with Qt Widgets + MOC. |
| simulator/filters/KalmanFilter/application/PendulumPlant.hpp | Introduces a simple pendulum plant model interface. |
| simulator/filters/KalmanFilter/application/PendulumPlant.cpp | Implements pendulum step integration and state management. |
| simulator/filters/KalmanFilter/application/KalmanFilterSimulator.hpp | Defines simulation config/result types and simulator API. |
| simulator/filters/KalmanFilter/application/KalmanFilterSimulator.cpp | Runs pendulum + KF/EKF/UKF estimators and records traces. |
| simulator/filters/KalmanFilter/application/CMakeLists.txt | Builds simulator application library depending on active filters. |
| simulator/filters/KalmanFilter/Main.cpp | Adds Qt application entry point for the simulator executable. |
| simulator/filters/KalmanFilter/CMakeLists.txt | Adds simulator executable target and subdirectories. |
| simulator/filters/CMakeLists.txt | Registers the Kalman filter simulator module under simulator/filters. |
| simulator/CMakeLists.txt | Adds simulator/filters to the overall simulator build. |
| numerical/solvers/CholeskyDecomposition.hpp | Adds Cholesky factorization utility used by UKF. |
| numerical/solvers/CMakeLists.txt | Exposes Cholesky header via solver target sources. |
| numerical/filters/active/test/TestUnscentedKalmanFilter.cpp | Adds unit tests covering UKF predict/update + control input. |
| numerical/filters/active/test/TestKalmanFilter.cpp | Fixes test helpers and updates KF tests for refactored behavior. |
| numerical/filters/active/test/TestExtendedKalmanFilter.cpp | Adds unit tests covering EKF linear/nonlinear + control input. |
| numerical/filters/active/test/CMakeLists.txt | Registers new EKF/UKF tests in the active filters test target. |
| numerical/filters/active/UnscentedKalmanFilter.hpp | Adds UKF implementation using sigma points + Cholesky. |
| numerical/filters/active/UnscentedKalmanFilter.cpp | Adds explicit template instantiations for UKF. |
| numerical/filters/active/KalmanFilterBase.hpp | Introduces shared base logic (noise, gain computation, update). |
| numerical/filters/active/KalmanFilter.hpp | Refactors KF onto the new base and adds optional control support. |
| numerical/filters/active/KalmanFilter.cpp | Adds explicit template instantiations for KF. |
| numerical/filters/active/ExtendedKalmanFilter.hpp | Adds EKF implementation (state/measurement functions + Jacobians). |
| numerical/filters/active/ExtendedKalmanFilter.cpp | Adds explicit template instantiations for EKF. |
| numerical/filters/active/CMakeLists.txt | Converts active filters target to a compiled library with new sources. |
| doc/solvers/README.md | Links Cholesky documentation from solver docs index. |
| doc/solvers/CholeskyDecomposition.md | Adds documentation for the new Cholesky decomposition utility. |
| doc/filters/active/UnscentedKalmanFilter.md | Adds UKF documentation and references to Cholesky usage. |
| doc/filters/active/ExtendedKalmanFilter.md | Adds EKF documentation including Jacobian-based predict/update. |
| doc/filters/README.md | Updates filter docs index to include EKF and UKF entries. |
| .vscode/launch.json | Adds a launch configuration for the Kalman Filter simulator executable. |
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
|



No description provided.