Jump to content
The simFlight Network Forums

Programmatic pushback


Recommended Posts

I assume that with FSX the FSUIPC actually uses SimConnect, if that is correct could you tell me if the PUSHBACK STATE simvar actually works? or how it is used?

 

I am able to read the correct value according to whether there is pushback or not, etc. But even thought the documentation says it is settable, when I try to set a value (32-bit) I get a DATA_ERROR exception.

Link to comment
Share on other sites

Hi,

 

it does use of course use SimConnect.

There are two Offsets, 0x31F0 to see the status and 0x31F4 to control.

31F0 4 Pushback status 3=off, 0=pushing back, 1=pushing back, tail to swing to left (port), 2=pushing back, tail to swing to right (starboard)
31F4 4 Pushback control. Write 0–3 here to set pushback operation, as described for the status, above.
Link to comment
Share on other sites

But in SimConnect one does not use "offsets" there is the "PUSHBACK STATE" SimVar which is writeable (well, so it says but I get a data error) and the "TOGGLE_PUSHBACK" event which is used to "toggle" pushback on/off or receive notification that pushback has started/finished.

 

The 2nd does not allow setting straight/left/right/none, only notification or enable/disable.

Link to comment
Share on other sites

But in SimConnect one does not use "offsets" there is the "PUSHBACK STATE" SimVar which is writeable (well, so it says but I get a data error) and the "TOGGLE_PUSHBACK" event which is used to "toggle" pushback on/off or receive notification that pushback has started/finished.

 

FSUIPC4's offset 31F4 uses the SimConnect variable PUSHBACK STATE with no problem. If you have a data error using it you are making a mistake somewhere, maybe the data type, which should be "enum"?

 

Pete

Link to comment
Share on other sites

Tried enum, number and various other but the same problem. I used Int32, tried Int64 and got a data type error which was expected.

 

Sorry, then. I can't support SimConnect. All I can say is that FSUIPC uses "enum" with int32 and it works fine.

 

Have you tried SimConnect logging to see what that shows?

 

Pete

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.