Hello. I am hoping that someone can give me some direction for integrating a self-written external code into Prepar3D. What I am trying to do is extract and pass current aircraft information (location, angle of attack, side slip, etc.) from Prepar3D to my external code, where that aircraft information is used as the input to the code. The output of the code is load increments (forces and moments in X,Y,Z direction) that will then be passed back into Prepar3D to update the flight dynamics.
As of now, I am struggling to find where to begin on this integration process. Is this something that should be handled with simconnect? Are there any examples of something similar that someone could point me to? My external code is currently a Matlab file but can be re-written in C, another language, or compiled if needed.