• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

Controlling aircraft via simconnect

JB3DG

Resource contributor
Messages
1,325
Country
southafrica
Just curious, if i use the set data on simobject function to set say pitch or bank on the aircraft will it still fly according to the flight dynamics ie if i increase the pitch via simconnect the aircraft will start to climb accordingly? I just take over its bank/pitch and not the whole flight profile?
 
Well, the only way to know for sure is to try it. Here is my guess.

If you have not called SimConnect_AIReleaseControl, then the AI will likely re-trim the aircraft in an attempt to keep it in compliance with its flight plan.
The pitch/climb may therefore be short lived, and the overall results perhaps not quite what you were looking for.

If, on the other hand, you do issue a SimConnect_AIReleaseControl call, then you are in the position of controlling all of the aircraft's movements for the rest of its sim life.

Doug
 
The reason i ask is im just looking at different ways to create a custom autopilot since i have no experience in such things yet and developers who are willing to guide me in such a project are rather hard to find....
 
OK, sorry, for some reason I presumed that you were looking to control AI aircraft...
I think you will find the approach of setting Pitch, Bank or Heading directly will be rather heavy handed.
If you don't set the control surfaces, you will be battling them the whole time, with possibly unwanted side effects.
For example, depending on the extent of the affect of the control surfaces on drag, you could end up with unwanted changes to airspeed and/or fuel consumption.
At the very least, any stock trim indicator gauges in the panel will be returning inappropriate values.
Whether this kind of thing will present a problem or not is probably a matter for investigation. It really is at the very edge of my knowledge of aerodynamics.

The straight answer to your question is yes, you can do that. The overall result may not however be what you are looking for.
I would approach this by having the custom autopilot set the control surface positions based on its calculation of what is required. This is after all what a real life autopilot is doing.

Doug
 
Back
Top