Can JSBSim be encapsulated into a function? #362
-
I want to encapsulated the JSBSim into a function in form of [states]=func(input), in which states are the variable we care and inputs are the control faces and throttle. How can I do? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 7 replies
-
I have found the jsbsim-gym, it may help me |
Beta Was this translation helpful? Give feedback.
-
This issue has been moved to "Discussions". Now that this new feature is available in GitHub, it has been decided to move issues related to support requests and questions to "Discussions" and restrict "Issues" to bugs reports and feature requests. |
Beta Was this translation helpful? Give feedback.
-
@bcoconni Thank you! Now, I am trying to use the Python version of JSBSim. I have installed the jsbsim wheel by pip install jsbsim and move the engine, aircraft and system folders to my new created python project directory. I use the https://github.com/JSBSim-Team/jsbsim/blob/master/python/JSBSim.py to test if I have installed successfully. When I set the same argument(i.e. scripts/Short_S23_2.xml --realtime --nice) in this python version and C++ version(JSBSim.cpp), the results from them are different, showing below: |
Beta Was this translation helpful? Give feedback.
-
@theorynice rather than pasting screenshots of your console output rather cut and paste the text from the console window and enter it using (Pdb) self.fdm["position/h-agl-ft"]
3.137191885329336 In terms of the large difference between To quit the simulation while it's running simply hit |
Beta Was this translation helpful? Give feedback.
I have found the jsbsim-gym, it may help me