FSDeveloper Community

Go Back   FSDeveloper Community > Microsoft Flight Simulator development > SimConnect > SimConnect

SimConnect Use this forum for all your SimConnect related discussions

Reply
 
Thread Tools Display Modes
  #1  
Old 28 Mar 2011, 14:40
JardY JardY is offline
  france
Join Date: Aug 2010
Posts: 45
Send a message via Skype™ to JardY
Pushback in C#

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 Code:
Struct3 lStruct3 = new Struct3();
                
lStruct3.PUSHBACK_STATE 1;
                
gSimConnectHandle.AddToDataDefinition(DEFINITIONS.Struct3"TOGGLE_PUSHBACK""number"SIMCONNECT_DATATYPE.FLOAT640.0fSimConnect.SIMCONNECT_UNUSED);
                
gSimConnectHandle.SetDataOnSimObject(DEFINITIONS.Struct3SimConnect.SIMCONNECT_OBJECT_ID_USER0lStruct3);
                
gSimConnectHandle.ClearDataDefinition(DEFINITIONS.Struct3); 
Can someone tell me just what I have to use to make this action work ?

Thanks !
Reply With Quote
  #2  
Old 28 Mar 2011, 18:40
JardY JardY is offline
  france
Join Date: Aug 2010
Posts: 45
Send a message via Skype™ to JardY
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 Code:
gSimConnectHandle.TransmitClientEvent(SimConnect.SIMCONNECT_OBJECT_ID_USEREVENTS.PUSHBACK10,
                   
GROUP_ID.GROUP1SIMCONNECT_EVENT_FLAG.GROUPID_IS_PRIORITY);
                
gSimConnectHandle.TransmitClientEvent(SimConnect.SIMCONNECT_OBJECT_ID_USEREVENTS.PUSHBACK2lCap,
                   
GROUP_ID.GROUP1SIMCONNECT_EVENT_FLAG.GROUPID_IS_PRIORITY);

gSimConnectHandle.TransmitClientEvent(SimConnect.SIMCONNECT_OBJECT_ID_USEREVENTS.PUSHBACK30,
                  
GROUP_ID.GROUP1SIMCONNECT_EVENT_FLAG.GROUPID_IS_PRIORITY); 
Reply With Quote
  #3  
Old 10 Apr 2011, 19:05
Vitus's Avatar
Vitus Vitus is offline
  newzealand
Location: Auckland, New Zealand
Join Date: Nov 2006
Posts: 700
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
__________________
Reply With Quote
  #4  
Old 29 Jun 2011, 12:41
JPC06240 JPC06240 is offline
  france
Location: 06240 BEAUSOLEIL
Join Date: Jun 2011
Posts: 14
[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
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
AI Aircraft disappears at Pushback DaveW Living World & AI General 7 09 May 2010 21:33
[FSXA] TaxiwayParking pushBack mendiola_loyola BGLComp XML, AFCAD, SceneGenX 3 18 Sep 2009 05:08
adding only one pushback tug mshidhaye Mission Development 1 21 Oct 2008 12:18
Drive Through Parking, Pushback, AI Won't Depart gadgets BGLComp XML, AFCAD, SceneGenX 3 13 Aug 2007 15:32


All times are GMT -4. The time now is 12:06.

Kirsch designed by Andrew & Austin


Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.