• 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.

FSX Remote gear control

Messages
130
Country
germany
Hi all,
Does someone know how to control the gear position with simConnect? I made several trials with the variables:

GEAR HANDLE POSITION no effect

GEAR CENTER POSITION
GEAR LEFT POSITION
GEAR RIGHT POSITION
Gear jumps to the desired position but moves back immediately to an internal set position.

GEAR POSITION: [n] no effect

I even tried event IDs
KEY_GEAR_SET no effect
KEY_GEAR_UP no effect
KEY_GEAR_DOW no effect

Even setting the gearposition and gear lever position in combination had no success. What is the magic behind it ?
Regards
Mike
 
All depends in how was that AI object created:


1) If it was created previously by FSX itself, then it's under the built-in AI system's control...try "clearing AI control" using the SimConnect's API (see the SDK)

2) If you created it as an "ENROUTE AI AIRCRAFT", then it also falls under the built-in AI system's control, so if you overwrite (using SimConnect) any of the AI's controls while in flight the AI system will overwrite your commands...try making the AI object using the "NON-ATC AIRCRAFT" API from SimConnect (see the SDK...)

3) If you created it as an "NON-ATC AIRCRAFT" then there shouldnt be any problem, and it would be weird that the AI system could be doing this...


In resume, create the AI aircraft using the "NON-ATC AIRCRAFT" API of SimConnect (see the SDK...)


Hope this helps...


Manuel
 
AI traffic Gear control

Hi Manuel,
thank you for the response. I meanwhile found a switch which works adequate. I use the client event GEAR_TOGGLE. The only disadvantage is, that the gear position has to be tracked if you do not want to request the gear position in every loop. It is strange when you find a complete section about the gear in the SimConnect documentation but the only settable variables do not work correctly. There is probably another magic behind it which I did not find up to now.
Thanks
Mike
 
Back
Top