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

Add support for boolean & math operations #224

Open nguyenquyhy opened 3 years ago

nguyenquyhy commented 3 years ago
RonPi commented 2 years ago

I created an Angle of Attack button. Right now I have the limits at 0 on the right and 10 degrees* on the left. Alas, the units returned are in radians, and I think in degrees. Also, counterintuitively, an increased angle of attack yields smaller numbers. EG: level flight yields 3.142......... One degree would be 3.106......... Zero would be you are falling straight down. I would like to do as stated above add math to the end of "ANGLE OF ATTACK INDICATOR" to convert it to degrees.

This could be done as shown, or have an additional entry for "Math applied to value" or some such.

nguyenquyhy commented 2 years ago

Have you tried to put Unit as Degree, ~and put Minimum value > Maximum value in the gauge~?

Edit: I tested putting Minimum > Maximum to see if the axis flips, but it doesn't work as what I expected. So I'll try to fix that. My intention was to allow those to be Start value and End value instead of Minimum and Maximum.

RonPi commented 2 years ago

I did the min and max part. I just quit flying because my butt got sore, but if you think saying DEGREES, DEGREE OR DEG after the ANLGE OF ATTACK will work, I guess I could give it a try.

nguyenquyhy commented 2 years ago

No, there is an input field named "Unit" in the plugin. You can fill in "Degree" in there.

RonPi commented 2 years ago

Thanks, I will check that out.