RocketPy icon indicating copy to clipboard operation
RocketPy copied to clipboard

ENH: Simulink Integration

Open giovaniceotto opened this issue 2 years ago • 0 comments

With the implementation of full support for controllers in RocketPy (see issue #274), there will be a need to integrate RocketPy with commonly used control system design tools, such as Simulink.

Therefore, this issue proposes the possibility of using RocketPy as one or more Simulink blocks.

Requirements

  1. A Simulink block shall be created, based on, for example, a MATLAB Function block. Such MATLAB Function shall be responsible for running RocketPy under the hood. As already known, RocketPy can already be used in MATLAB. See the useful links below for more info.

  2. The end-user should not need to know how to code in Python nor how to use Python.

  3. An example with detailed documentation must be created.

Proposed Milestone

This feature should be implemented in a major release with full support for controllers.

Therefore, it can be released with v2.0.0.

Useful Links

  • https://docs.rocketpy.org/en/latest/matlab/matlab.html

  • https://www.mathworks.com/matlabcentral/answers/359575-how-to-run-a-python-code-on-simulink

  • https://www.mathworks.com/help/matlab/getting-started-with-python.html

  • https://www.mathworks.com/help/simulink/ug/example-calculating-statistical-mean-and-standard-deviation.html

giovaniceotto avatar Nov 05 '22 03:11 giovaniceotto