MATLAB Controller using JSBSim S-Function #992
Replies: 4 comments 7 replies
-
Hi @hjorthchristian, At least theoretically any JSBSim model can be used with the S-Function. |
Beta Was this translation helpful? Give feedback.
-
Yes, this should be possible. |
Beta Was this translation helpful? Give feedback.
-
Yes, you are not forced to use any existing auto-pilot systems. You can implement your own controller completely in Matlab/Simulink. You obviously need to ensure that in terms of IO config file that you're including all the required states that your controller requires. |
Beta Was this translation helpful? Give feedback.
-
Sure, create an IO file which has no inputs from Matlab/Simulink. That way the only inputs during the run will come from the script file. |
Beta Was this translation helpful? Give feedback.
-
I am interested to know if there is a repository or if anyone could provide any guidance on how to control an aircraft with the help of the S-Function provided by JSBSim in MATLAB. However, I am new to this world and I am trying to learn. I have tested their tutorial code with the 737 example and it works and I have seen that there are some necessary parameters for the simulation to run, however I find it difficult to make the function work to any arbitrary aircraft, maybe it has to do with the IO xml file, but it seems that I must have a specific number of inputs in order for it to work (8 inputs?). To sum it up, I am interested in making a controller for an aircraft, however I am having some difficulties. Can I extract a model of an aircraft from JSBSim and use it in matlab? How is the standard way to use the JSBSim S-function for controlling the aircraft? Any help at all is very welcome! :)
Beta Was this translation helpful? Give feedback.
All reactions