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

Get aircraft data from SimConnect #180

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Nezz
Copy link
Contributor

@Nezz Nezz commented Feb 14, 2021

I wanted to set up some aircraft specific things and couldn't find a way to access the current aircraft's title. I noticed that AircraftDataStruct was already there in the code, but it was unused, so I added the functionality to retrieve it from SimConnect.

Please note that this PR only adds the functionality to IFlightConnector - which I use for my home cockpit. It needs further work to utilize it in Stream Deck, but I wanted to contribute my changes in case someone wants to do something similar.

@nguyenquyhy
Copy link
Owner

nguyenquyhy commented Feb 15, 2021

Thank you very much for the PR. I'll leave it here until we add features that utilize for aircraft data. I really want to minimize the load we put on SimConnect.

By the way, may I know what you use those information for in your home cockpit? Maybe I can think of something useful for the Stream Deck.

Also, last time I tried, the returned model is the unlocalized name of the aircraft. Did you do some mapping/translation too or you can just use that value directly for your purposes?

@Nezz
Copy link
Contributor Author

Nezz commented Feb 15, 2021

By the way, may I know what you use those information for in your home cockpit?

I use it to show aircraft-specific buttons, such as electrical systems, buttons used for jet engine start procedures, and range buttons for G1000/G3000.

Did you do some mapping/translation too or you can just use that value directly for your purposes?

I use the value directly. It doesn't appear to support localization (ui_type and ui_manufacturer do).

@nguyenquyhy nguyenquyhy force-pushed the master branch 3 times, most recently from 536d435 to 31fa41e Compare February 16, 2021 05:17
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

Successfully merging this pull request may close these issues.

2 participants