plane icon Welcome to Microsoft Flight Simulator’s SDK Q&A Platform!

You have questions regarding the SDK? DevMode Tools? SimConnect? You would like to submit an idea for future improvements, seek help or exchange knowledge? You’re in the right place.

In the upcoming flighting, we've changed the behaviour of the content.xml file. If your addon uses this file, please read this article!

Please take a moment to read the platform’s guidelines before you get started!


question

PeakMercury3697 avatar image
PeakMercury3697 asked thealx commented

Overriding states of aircraft with an external flight dynamics model

Hi,


I am trying to use my flight model for a helicopter. I am currently overriding position, velocity, angles, acceleration etc. I am doing this in the visual's thread(PANEL_SERVICE_PRE_DRAW).

I am overriding position and angles from my output and all velocities and accelerations are set to zero. However, the variables that I set gets changed sometimes. This causes stutter in the visual. What I thought was overriding using visual thread will give no chance to MSFS to use its internal flight model to change the variables. But it is not the case.


I am attaching a video below from SimVarWatcher. In that video, I set all angles and velocities to 0 constantly, to demonstrate the issue. As you can see, sometimes variables are set to 0; but mostly they are some other number. How can I override these variables without any interruption from MSFS?


Thanks in advance!


flightmodelsimconnect
1 comment
10 |10000

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

0 Answers

·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 5 attachments (including images) can be used with a maximum of 19.1 MiB each and 23.8 MiB total.