Low Pitchrate and Rollrate #1208
Replies: 2 comments
-
It seems you're running one single simulation step of JSBSim for each iteration of your application loop however I guess you want real time behavior, so you have to make sure that JSBSim catches up with the elapsed real time. This is because JSBSim runs faster than real time so its simulated time lags behind the real world clock time. For an example of how to implement this, check out the example below. It checks how much real time has elapsed since the last time JSBSim has been called and calls Lines 209 to 214 in 2bdf0d4 |
Beta Was this translation helpful? Give feedback.
-
This support request has been moved to "Discussions" since it is neither a bug nor a feature request. The discussion will continue in this thread. Thank you. |
Beta Was this translation helpful? Give feedback.
-
Hi,
I am working on integrating JSBSim with Unity. First, I created a Python script to capture input values from the HOTAS controller, which are then sent to the JSBSim script to process through the Flight Dynamics Model (FDM). The resulting calculations are transmitted to Unity to control the flight of a 3D aircraft. However, I feel that the pitch rate and roll rate are too low compared to flight gear. I would really appreciate it if someone could help me with this. (Note: I have set FDM.Setdt to 0.01. I have attatched the python scripts along with this.)
HotasControls.txt
JSBSimPython.txt
Beta Was this translation helpful? Give feedback.
All reactions