#How to use 2 datarefs for 1 state (Annunciator LED)

1 messages · Page 1 of 1 (latest)

viscid steppe
#

For the annuciators for example the A/P PRST I have two LED's, a red and orange one.
The corresponding dataref for the LEDS use a combination of the follwoing datarefs:
laminar/B738/annunciator/ap_disconnect1
laminar/B738/annunciator/ap_warn1

For the orange LED, both datarefs have the value of 1.
For the red LED, ap_disconnect1 has the value 0 and the ap_warn1 has the value 1.
How can I get this configured in Mobiflight?

All help is appreciated

high escarp
#

Read each Dataref into a separate output config.
The in the orange led output config, bring both Dataref values as config references with # and ! placeholders.
Create a Transform with formula for orange led
if(#=1 && !=1,1,0)
Same procedure for red led with a small change
if(#=0 && !=1,1,0)

viscid steppe
#

Thank you, I will have to figure out how to program this in Mobiflight, but it's a start how to get this working.
Much appreciated Jaime Leon!

echo sky
#

Hi Jeroen,
Could you share a picture of your configuration I have the same problem. I don't understand how I should create both datarefs as a reference since there is only one to choose from. Thanks for your help

high escarp
echo sky
#

Hello Jaime Leon,
I have already configured two outputs but I can't get any further with the config reference. I hope you can help me here.

high escarp
#

#1287778898439966854 message

#

Each placeholder requires a config reference. You are using '#' and '!'

high escarp
#

So two config references defining those corresponding placeholders

echo sky
#

I don't quite understand what the second placeholder is supposed to be because I only have the AFDS_CP_ap_warn1 (yellow LED) in the selection and not the AFDS_CP_ap-disconnect1 (red LED). I want that if the yellow LED lights up the red one doesn't light up when you press the test switch, that must be an error in Xplane. Do you have a picture of your configuration here? Maybe then I'll understand it easier. Thank you in advance

vernal salmon
#

take a look at this file. it should give you an idea on how to achieve the result using the steps jaime explained

high escarp
#

@viscid steppe is this resolved?