Skip to content

Add host FCS-MPCC simulation and control.mpcc node for three-phase PMSM - #4

Closed
saeedamooei wants to merge 1 commit into
OpenVVVF:mainfrom
saeedamooei:feature/fcs-mpcc-three-phase-pmsm
Closed

Add host FCS-MPCC simulation and control.mpcc node for three-phase PMSM#4
saeedamooei wants to merge 1 commit into
OpenVVVF:mainfrom
saeedamooei:feature/fcs-mpcc-three-phase-pmsm

Conversation

@saeedamooei

Copy link
Copy Markdown
Contributor

Summary

  • Adds Lib/Simulation with 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.
  • Adds the control.mpcc node template (Assets/NodeTemplates/control.mpcc/) that outputs switching states Sa/Sb/Sc for future STM32 PWM adapter work.
  • Documents architecture, verification, traceability, and known limitations under docs/, with host plot/comparison helpers in scripts/.

Test plan

  • cmake -B build -G Ninja && cmake --build build -j8
  • ctest --test-dir build --output-on-failure (includes Simulation_* tests)
  • ./build/Lib/Simulation/mpcc_closed_loop
  • Optional: python3 scripts/plot_results.py and/or python3 scripts/compare_mpcc_foc.py

Made with Cursor

@saeedamooei
saeedamooei force-pushed the feature/fcs-mpcc-three-phase-pmsm branch from d244dc4 to 00b5835 Compare July 31, 2026 02:06
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
saeedamooei force-pushed the feature/fcs-mpcc-three-phase-pmsm branch from 00b5835 to df2c4d4 Compare July 31, 2026 02:07
@saeedamooei

Copy link
Copy Markdown
Contributor Author

Superseded by #5 — reopened from personal account @saeed95-lab.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant