Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calling SetDataOnSimObject etc to change fuel quantity #135

Open
Dropbear67 opened this issue Sep 16, 2024 · 0 comments
Open

Calling SetDataOnSimObject etc to change fuel quantity #135

Dropbear67 opened this issue Sep 16, 2024 · 0 comments

Comments

@Dropbear67
Copy link

Dropbear67 commented Sep 16, 2024

I think this project may be dead / abandoned but if anyones uses it and can help me..

I can do most things I want but I'm having trouble with the following SDK calls in order to set fuel quantities.

fsx_simconnect.SetDataOnSimObject(StructDefinitions.FuelData, SimConnect.SIMCONNECT_OBJECT_ID_USER, SIMCONNECT_DATA_SET_FLAG.DEFAULT, SendFuel)
fsx_simconnect.RequestDataOnSimObjectType(DataRequests.SetFuel, StructDefinitions.FuelData, 1, Microsoft.FlightSimulator.SimConnect.SIMCONNECT_SIMOBJECT_TYPE.USER)

Basically I just want a way of setting the fuel quantity based on saved values and I can't work out the proper calls in order to do it.
Any help would be appreciated. (im a very basic python programmer so please be gentle)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant