RayDMR/FieldOrientedControl ? reverse-engineered prompt
Reverse engineered prompt
Build me a working proof of concept for a field oriented control system that starts in MATLAB Simulink and can be turned into VHDL for FPGA use.
I want the project to include the Simulink model, the parameter script that sets up the controller values, and the generated VHDL output in a separate folder. Make it easy to open the model, run the setup script, and simulate the control system from there. If anything needs updating for the current MATLAB version, please adjust it so the model opens and runs cleanly.
I also want the generated VHDL kept as a synthesis ready example, even if it is only a proof of concept. Please preserve the overall structure of the control system and make the project clear enough that someone can tweak the model parameters and rerun it without getting lost. If you need to look up current MATLAB docs online, do that.
Are you gonna build this?
make sure you review the code using coderabbit