Add host FCS-MPCC simulation and control.mpcc node for three-phase PMSM - #4
Closed
saeedamooei wants to merge 1 commit into
Closed
Add host FCS-MPCC simulation and control.mpcc node for three-phase PMSM#4saeedamooei wants to merge 1 commit into
saeedamooei wants to merge 1 commit into
Conversation
saeedamooei
force-pushed
the
feature/fcs-mpcc-three-phase-pmsm
branch
from
July 31, 2026 02:06
d244dc4 to
00b5835
Compare
Introduce Lib/Simulation (dq plant, eight-state VSI, MPCC/FOC runners and tests), the control.mpcc graph template, and docs/scripts so predictive current control can be verified on host before STM32 PWM adapter work.
saeedamooei
force-pushed
the
feature/fcs-mpcc-three-phase-pmsm
branch
from
July 31, 2026 02:07
00b5835 to
df2c4d4
Compare
Contributor
Author
|
Superseded by #5 — reopened from personal account @saeed95-lab. |
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
Lib/Simulationwith a dq PMSM plant, eight-state two-level VSI model, FCS-MPCC controller (conventional + Zhang delay/back-EMF/optimal-duty modes), FOC baseline, closed-loop runners, and unit tests.control.mpccnode template (Assets/NodeTemplates/control.mpcc/) that outputs switching statesSa/Sb/Scfor future STM32 PWM adapter work.docs/, with host plot/comparison helpers inscripts/.Test plan
cmake -B build -G Ninja && cmake --build build -j8ctest --test-dir build --output-on-failure(includesSimulation_*tests)./build/Lib/Simulation/mpcc_closed_looppython3 scripts/plot_results.pyand/orpython3 scripts/compare_mpcc_foc.pyMade with Cursor