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

Possible to switch to using SimConnect_RequestDataOnSimObject? #122

Open
westlakem opened this issue Aug 3, 2022 · 0 comments
Open

Possible to switch to using SimConnect_RequestDataOnSimObject? #122

westlakem opened this issue Aug 3, 2022 · 0 comments

Comments

@westlakem
Copy link

westlakem commented Aug 3, 2022

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

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