Bahadır hocam tekrar merhaba ,
Forumdan bır cevap geldı ben pek anlayamadığım ıcın dırek buraya kopyalıyorum. Bilmıyorum bır ıse yarar mı ama işte umut dunyası
![Smile :)](./images/smilies/emoticon-0100-smile.gif)
Hi,
I don't think all the daterefs / objects are implemented yet... for example I can't get the target value for the beacon light via the "sim/cockpit/electrical/beacon_lights_on" dataref, but I can get the target value for the taxi light via the "sim/cockpit/electrical/taxi_light_on" dataref. Mokny's connector plugin already syncs some of the lights to X-plane datarefs, so for example you can use "sim/cockpit/electrical/taxi_light_on" to get the value of the taxi light.
Note that these values are merely reflecting the value of the switches (1 = on / 0 = off)... so you will still get a value of 1 for the taxi light even if you remove all power and the actual taxi light turns off.
For the QNH value... this depends on which value you would like to use. For instance you can read the barometric correction value from FCU1 which is the "Aircraft.FMGS.FCU1.BaroL" object. You have to add a dataref in your custom.cfg file for Mokny's connector plugin and then you can reference this dataref like any other in X-Plane.
Put this in your custom.cfg file:
#Dataref for Beacon Light Switch target
DATAREF;INT;Aircraft.Cockpit.Overhead.LightBeacon.Target;-1;NORM;
#Dataref for LH XXXX barometric correction value
DATAREF;INT;Aircraft.FMGS.FCU1.BaroL;-1;NORM;
Then to reference it from say FlyWithLua, put the following code in your Lua script:
dataref( "FFA320_Beacon_Target", "MOKNY/FFA320/Aircraft/Cockpit/Overhead/LightBeacon/Target")
dataref( "FFA320_BaroL", "MOKNY/FFA320/Aircraft/FMGS/FCU1/BaroL")
The FFA320_Beacon_Target dataref will contain a 1 for Beacon light switch in the On position and 0 for Off position.
The FFA320_BaroL dataref will contain the integer value (XXXX) of the baro display... keep in mind that it will change when you switch between inHg and hPa. So 29.92 inHg will show an integer value of 2992 and if you change it to hPa the value will be 1015. Changing it back to inHg will display 2991 due to rounding.
Hope this helps..