Git Product home page Git Product logo

Comments (2)

mkx173 avatar mkx173 commented on August 22, 2024

I actually implemented this locally but haven't submit a pull request because there are two options and I don't know which one is better. The first option is that the led is off when the value is 0 and on otherwise, and you can set additional values where the led will stay off. The second option is the led is always off and you can add values that will turn on the led. Which one do you think is better?

Or additionally I can make it a jinja2 script, but maybe that's an overkill.

from x-touch-mini-fs2020.

vicentezc avatar vicentezc commented on August 22, 2024

So as an example, I noticed that the state of the ATHR ARM switch in the PMDG 737 can be determined using two variables with the following values:
| ATHR ARM Position | ARMED | OFF |
| L:switch_3801_73X | 0.5 | 0 |
| L:switch_380_73X | 0 | 100 |

This shows that in some cases, we may want the led ON when the Lvar is 0 (I don't understand why PMDG made that choice).
So in the first option, if the led was off with value of L:switch_380_73X == 0, that wouldn't work.
I think it's more intuitive to define the value(s) for the led to be ON.
It could be either a list of 1-N values (e.g. for switches with more than 2 positions), or when value is greater/lower than X. I guess that would cover most cases.
Then of course, if no value is defined, the current default would apply (Off = 0 / On = 1).

Thanks!

from x-touch-mini-fs2020.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.