• 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 Pushback in C#

Messages
45
Country
france
Hi everybody, I'm searching for about 2 hours now to know how can I start the pushback by clicking a button on an C# application...

I write this code (piece of shi*) :

PHP:
Struct3 lStruct3 = new Struct3();
                lStruct3.PUSHBACK_STATE = 1;
                gSimConnectHandle.AddToDataDefinition(DEFINITIONS.Struct3, "TOGGLE_PUSHBACK", "number", SIMCONNECT_DATATYPE.FLOAT64, 0.0f, SimConnect.SIMCONNECT_UNUSED);
                gSimConnectHandle.SetDataOnSimObject(DEFINITIONS.Struct3, SimConnect.SIMCONNECT_OBJECT_ID_USER, 0, lStruct3);
                gSimConnectHandle.ClearDataDefinition(DEFINITIONS.Struct3);

Can someone tell me just what I have to use to make this action work ?

Thanks !
 
I'm still working on it with the following functions :

The EVENTS are TOGGLE_PUSHBACK, KEY_TUG_HEADING and TUG_DISABLE.

In fact, I don't really understand the heading I have to set with the TUG_HEADING... :-/

PHP:
gSimConnectHandle.TransmitClientEvent(SimConnect.SIMCONNECT_OBJECT_ID_USER, EVENTS.PUSHBACK1, 0,
                   GROUP_ID.GROUP1, SIMCONNECT_EVENT_FLAG.GROUPID_IS_PRIORITY);
                gSimConnectHandle.TransmitClientEvent(SimConnect.SIMCONNECT_OBJECT_ID_USER, EVENTS.PUSHBACK2, lCap,
                   GROUP_ID.GROUP1, SIMCONNECT_EVENT_FLAG.GROUPID_IS_PRIORITY);

gSimConnectHandle.TransmitClientEvent(SimConnect.SIMCONNECT_OBJECT_ID_USER, EVENTS.PUSHBACK3, 0,
                  GROUP_ID.GROUP1, SIMCONNECT_EVENT_FLAG.GROUPID_IS_PRIORITY);
 
Hey JardY,

just want to say: you are not alone! It seems like this heading variable is actually really strange. Fingers crossed that you'll find a solution (and share it with us ;))

Cheers,
Vitus
 
[FSX] simConnect

Hello,
I am also trying to work with SimConnect, with VB .NET in my case. I can now read most of the FS X variables and process them to display them on a separate form. That's OK, except for ambiant temperature, which refuses to be displayed. I don't understand why, but I'll see that later.

What I am looking for now is to transmit data (commands) from my client program to FSX. So I read your post with interrest, and I tried to translate it into VB. I failed, because several keywords are unknown from me : PUSHBACK_STATE, lcap.

The documentation of the SimConnect SDK is confusing, and I desperatly search the web to find help.

Thanks in advance.

Jean-Paul
 
Back
Top