Skip to content

Calling SetDataOnSimObject etc to change fuel quantity #135

Description

@Dropbear67

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions