Comments (2)
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.
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)
- Problem with v1.9 HOT 3
- Better behavior of long pressing a button?
- LED not working HOT 2
- Mobiflight Connector is a mandatory requirement
- Setting L-Var value?
- [Information] Mobiflight WASM module crashes since last World Update France HOT 3
- CRJ config use mobiflight - Rotary not smooth HOT 2
- Last dev of A320NX uses local variables: it is possible to control them ? HOT 2
- simvar_led's not working HOT 5
- X-Touch-Mini-FS2020 does not work since latest simupdate 4; msfs version 1.16.2.0 HOT 1
- PMDG DC6 Config HOT 3
- CRJ config missing FLC/speed function HOT 1
- Is it possible to run RPN scripts? HOT 6
- Adding Mobiflight events to the config JSON schema
- "Automatic change to layer A" msg from app ? after pressing any layer B button - Thank You for great work. HOT 1
- Encoder rotation velocity questions
- Mobiflight events HOT 1
- CRJ Template Format knob lvar correction.
- Process hangs and can not be terminated HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from x-touch-mini-fs2020.