nguyenquyhy / Flight-Tracker-StreamDeck

A Stream Deck plugin to interact with Microsoft Flight Simulation
https://flightsim.to/file/3178/flight-tracker-streamdeck-plugin
GNU General Public License v3.0
379 stars 73 forks source link

Individual transponder digit feedback #15

Open SnugglePilot opened 4 years ago

SnugglePilot commented 4 years ago

Rather than using the numpad-style transponder interface, I am building my own "classic" style transponder increment/decrement interface.

image

This works well, but I'm trying to fill the top row with the actual transponder numbers for the 1000, 100, 10, and 1 values as necessary.

TRANSPONDER CODE:index is the variable call to get the full number (which I tried just filling in as a "display value" on a generic toggle button -- perhaps this is an individual bug) but this didn't work. It would be nice to have a bit of additional processing to pull out the individual numbers.

nguyenquyhy commented 4 years ago

Are those up/down buttons working?

And yes, TRANSPONDER CODE:index need some conversion due to a quite unique number encoding. Since transponder code seems to be the only variable that use this encoding, I'll embed the decoding logic into generic buttons for this special case.

Pulling individual digit should be possible, but is there any use case other than transponder code for this? I am thinking between adding more stuff to generic button or a simple Transponder Digit button.

SnugglePilot commented 4 years ago

Using your Generic Toggle Button (with the image swapped out using Stream Deck's default image replacer) I put XPNDR_1000_INC into the first arrow, XPNDR_100_INC in the second, etc., and that works in every aircraft. I'm not sure if any XPNDR in game actually has this button layout, but it did in the plane I used to fly IRL so I missed it ;)

I haven't figured out how to get the Ident button working yet though.

I can think of a few scenarios I'd love to have this functionality for (altitude settings for AP would be great) but I don't think simconnect makes that possible. I believe only the altimiter has those 1000, 100, 10, 1 settings in them.

rmroc451 commented 4 years ago

@nguyenquyhy I'm willing to write up a generic transponder digit viewer for this today, if you are working on something else today. let me know :) I think this is only valid for transponder, as you can't do this for frequencies.

Maybe once simconnect has more exposed for the garmin stuff, we could use it there. unknown at this time.

nguyenquyhy commented 4 years ago

@SnugglePilot I see. So the event for inc/dec is already there. I cannot find any event/variable for ident though (that feature is not available in FSX). I heard that vPilot can interface Ident with the sim but I have no way to verify that tat the moment.

@rmroc451 I would imagine a simple Transponder Digit button where the only setting would be which digit to show. Are you going to do the same 😁.

rmroc451 commented 4 years ago

@nguyenquyhy yeah. We do have the following, so we could show the frequencies like this too. So, we could simulate the knobs and show the value split up like a transponder. IDK if folks would like to do that over just showing the value in a regular toggle button. Give them the option then? I was thinking of making it generic where you pass it a value entry from the enum, and the index you want to display for it, and it will substring it and display it. So it would work for any, really.