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

Possible to switch to using SimConnect_RequestDataOnSimObject?

Open westlakem opened this issue 3 years ago • 0 comments

On the following line:

https://github.com/odwdinc/Python-SimConnect/blob/master/SimConnect/SimConnect.py#L214

You call "self.dll.RequestDataOnSimObjectType", which limits the request to the user object and issues a new "request" to the SimConnect DLL for information on the target SimObject.

If it's possible to swich that to "RequestDataOnSimObject", we can make requests against different objects AND submit a "SIMCONNECT_PERIOD" variable so SimConnect can push data to us when it's updated in the sim instead of constantly pulling the data. https://docs.flightsimulator.com/html/Programming_Tools/SimConnect/API_Reference/Events_And_Data/SimConnect_RequestDataOnSimObject.htm

westlakem avatar Aug 03 '22 06:08 westlakem