- Messages
- 1,749
- Country

I have a DME that only has a active nav 2 frequency. I also have a nav 2 radio that uses stby/active with a swap button. So in my aircraft.cfg i have standby enabled so the nav 2 radio works with swap.
But for the DME i would like to directly tune the active which normally can't be done if you use the settings i mention above. So like in the past i have written custom knobs using Mhz or Khz and use the set events to update what you tune. I tested my new knob and i can tune the exact frequency range from 108 to 117. According to the wiki here i can set up a click button like i have posted below. But during testing i can't get my custom Lvar to set the active from clicking the knob or just using an update code like below. So i have tested with clicking event and update.
I am asking for help as i am now very tired and lost on why a simple set event will not set.
http://www.fsdeveloper.com/wiki/index.php?title=XML:_Decimal_To_BCD_Macro_-_Set_Nav/Com_Freq
Outside logic
Model.def
But for the DME i would like to directly tune the active which normally can't be done if you use the settings i mention above. So like in the past i have written custom knobs using Mhz or Khz and use the set events to update what you tune. I tested my new knob and i can tune the exact frequency range from 108 to 117. According to the wiki here i can set up a click button like i have posted below. But during testing i can't get my custom Lvar to set the active from clicking the knob or just using an update code like below. So i have tested with clicking event and update.
I am asking for help as i am now very tired and lost on why a simple set event will not set.
http://www.fsdeveloper.com/wiki/index.php?title=XML:_Decimal_To_BCD_Macro_-_Set_Nav/Com_Freq
Outside logic
Code:
<Update>
@Dec2Bcd((L:DME2_FREQ, MHZ)) (>K:NAV2_RADIO_SET)
</Update>
Model.def
Code:
(M:Event) 'LeftSingle' scmp 0 == if{ @Dec2Bcd((L:DME2_FREQ, MHZ)) (>K:NAV2_RADIO_SET) }




