Python-SimConnect icon indicating copy to clipboard operation
Python-SimConnect copied to clipboard

Calling SetDataOnSimObject etc to change fuel quantity

Open Dropbear67 opened this issue 2 years ago • 0 comments

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)

Dropbear67 avatar Sep 16 '24 07:09 Dropbear67