#PMDG Annunciator Brightness

1 messages · Page 1 of 1 (latest)

unborn silo
#

Hello,

I was reading some discussion on the PMDG channel here on the Discord about the annunciator test/bright/dim switch. I am looking to add the ability to dim my annunciators.

I understand that I need to check the value of the light test switch when it is in the dim position. From what I've read I'm thinking this could then be stored in a MobiFlight variable but I'm not sure the best way this should be implemented in terms of the input and output configuration.

I already have a couple of my annunciators configured to display based on their presets from Hubhop, but I have some questions on how to best implement the dim functionality. These are on PWM pins on my Arduino.

  1. Is it possible to just capture a value from a SimConnect variable and then store it in a MobiFlight variable without a physical input change? I have used the variables so far but only in combination with a physical input or output. Right now I do not yet have a physical light test switch, so I would need to capture the change in the sim variable value based on the virtual switch.

  2. I am still learning about the RPN syntax. I'm wondering how I would properly set my brightness by either modifying the preset, or is this better performed as a transform? My thoughts is I could check against the Dim variable and then set the output accordingly.

  3. I also thought I saw someone mention about config references, is this something that would be best used here for reusability and/or getting the MobiFlight variable for use in the preset code?

Thanks for your help,

Sean

lavish mantle
# unborn silo Hello, I was reading some discussion on the PMDG channel here on the Discord ab...

Hello, read the light test switch position directly into an output config. In this case, there is no need for a MF variable.

RPN code is executed in the simulator, whereas MF variables, Transforms, Compares and Preconditions only exist in Mobiflight.

Config references are used to import the value from an output config into another input or output config to be used as part of an evaluation. In your case the value of the light switch could be used as config reference in each annunciator output config, in order to set the brightness level.

The light test switch has 3 positions. You can use a transform to set the value to Test = 255, Brt = 255, and Dim = 50. You can then bring that value into each annunciator output config with placeholder # and use Transform of $*# to set the value of the output config to the brightness level, but only when the annunciator is ON. Many more sophisticated checks and Transforms are possible.