Repository navigation
feat: add mpc controller - #104
Conversation
✅
|
| Descriptor | Linter | Files | Fixed | Errors | Warnings | Elapsed time |
|---|---|---|---|---|---|---|
| ✅ ACTION | actionlint | 6 | 0 | 0 | 0.07s | |
| ✅ CPP | clang-format | 221 | 1 | 0 | 0 | 1.16s |
| ✅ CPP | cppcheck | 221 | 0 | 0 | 7.97s | |
| ✅ DOCKERFILE | hadolint | 1 | 0 | 0 | 0.08s | |
| ✅ JSON | jsonlint | 8 | 0 | 0 | 0.38s | |
| ✅ JSON | prettier | 8 | 8 | 0 | 0 | 0.64s |
| markdownlint | 44 | 1 | 19 | 0 | 2.54s | |
| ✅ MARKDOWN | markdown-table-formatter | 44 | 3 | 0 | 0 | 0.3s |
| lychee | 144 | 23 | 0 | 1.48s | ||
| ✅ YAML | prettier | 13 | 6 | 0 | 0 | 0.94s |
| ✅ YAML | yamllint | 13 | 0 | 0 | 0.61s |
Detailed Issues
⚠️ SPELL / lychee - 23 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)
[ERROR] file://doc/filters/controllers/Lqr.md | Cannot find file
[ERROR] file://doc/filters/solvers/DiscreteAlgebraicRiccatiEquation.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
[403] https://gitlab.com/embedded-library/infrastructure/hal-st.git | Network error: Forbidden
[403] https://developer.arm.com/documentation/dui0473/latest | Network error: Forbidden
[403] https://developer.arm.com/documentation/100166/latest/ | Network error: Forbidden
[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/27 | 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/12 | 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/1 | 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/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/26 | 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/6 | Network error: Not Found
[403] https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-$ | Network error: Forbidden
📝 Summary
---------------------
🔍 Total..........195
✅ Successful.....163
⏳ Timeouts.........0
🔀 Redirected.......0
👻 Excluded.........8
❓ Unknown..........0
🚫 Errors..........23
Errors in .gitlab-ci.yml
[403] https://gitlab.com/embedded-library/infrastructure/embedded-infra-lib.git | Network error: Forbidden
[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/hal-st.git | Network error: Forbidden
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 doc/filters/active/KalmanFilter.md
[ERROR] file://doc/filters/controllers/Pid.md | Cannot find file
[ERROR] file://doc/filters/controllers/Lqr.md | Cannot find file
[ERROR] file://doc/filters/solvers/DiscreteAlgebraicRiccatiEquation.md | Cannot find file
Errors in doc/kinematics/ForwardKinematics.md
[ERROR] file://doc/math/Geometry3D.md | Cannot find file
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/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/13 | 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/15 | 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/4 | 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/27 | 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/9 | Network error: Not Found
[404] https://github.com/embedded-pro/embedded-numerical-toolbox/issues/6 | Network error: Not Found
Errors in .github/workflows/static-analysis.yml
[403] https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-$ | Network error: Forbidden
⚠️ 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
Adds a new Model Predictive Controller (MPC) capability to the Numerical Toolbox, including a Qt-based simulator UI, a new controller interface + implementation, unit tests, and user documentation.
Changes:
- Introduce
controllers::Mpcimplementation andMpcControllerinterface innumerical/. - Add an MPC Qt simulator app (configuration panel + plots) under
simulator/controllers/Mpc/. - Add MPC documentation and hook it into the controllers docs index; add MPC unit tests.
Reviewed changes
Copilot reviewed 25 out of 25 changed files in this pull request and generated 7 comments.
Show a summary per file
| File | Description |
|---|---|
| simulator/controllers/Mpc/view/MpcMainWindow.hpp | Declares the MPC simulator main window. |
| simulator/controllers/Mpc/view/MpcMainWindow.cpp | Builds the UI and runs simulations on “Compute”. |
| simulator/controllers/Mpc/view/MpcConfigurationPanel.hpp | Declares UI for MPC/plant/simulation parameters. |
| simulator/controllers/Mpc/view/MpcConfigurationPanel.cpp | Implements configuration UI and config/plant creation. |
| simulator/controllers/Mpc/view/MpcChartWidget.hpp | Declares plotting widget for time responses. |
| simulator/controllers/Mpc/view/MpcChartWidget.cpp | Implements custom painting for state/control/cost charts. |
| simulator/controllers/Mpc/view/CMakeLists.txt | Adds a Qt Widgets static library for the MPC view. |
| simulator/controllers/Mpc/application/StateSpacePlant.hpp | Adds a simple state-space plant container + factory APIs. |
| simulator/controllers/Mpc/application/StateSpacePlant.cpp | Implements plant factories used by the simulator UI. |
| simulator/controllers/Mpc/application/MpcSimulator.hpp | Declares simulator wrapper around the MPC implementation. |
| simulator/controllers/Mpc/application/MpcSimulator.cpp | Runs MPC simulation loops and produces plotting data. |
| simulator/controllers/Mpc/application/CMakeLists.txt | Adds the MPC simulator application library target. |
| simulator/controllers/Mpc/Main.cpp | Adds the MPC simulator executable entry point. |
| simulator/controllers/Mpc/CMakeLists.txt | Wires the MPC simulator executable + subdirectories. |
| simulator/controllers/CMakeLists.txt | Registers the new MPC simulator subdirectory. |
| numerical/controllers/interfaces/MpcController.hpp | Adds a generic MPC controller interface. |
| numerical/controllers/interfaces/CMakeLists.txt | Adds MPC interface header to the interfaces target. |
| numerical/controllers/implementations/Mpc.hpp | Adds MPC implementation (cost matrices, constraints, reference). |
| numerical/controllers/implementations/Mpc.cpp | Adds explicit template instantiations for MPC. |
| numerical/controllers/implementations/CMakeLists.txt | Adds MPC sources to the implementations target. |
| numerical/controllers/implementations/test/TestMpc.cpp | Adds unit tests for MPC behavior, constraints, reference, precompute. |
| numerical/controllers/implementations/test/CMakeLists.txt | Builds MPC tests as part of controllers test target. |
| doc/controllers/README.md | Adds MPC to controller documentation index. |
| doc/controllers/Mpc.md | Adds full MPC documentation (theory, complexity, pitfalls, etc.). |
| .vscode/launch.json | Adds a VS Code launch config for the MPC simulator. |
|



No description provided.