Jump to content
Sign in to follow this  
Guest A320 Co-Pilot

Radio/Nav Gauge

Recommended Posts

Guest A320 Co-Pilot

For the Radio's. The gauge works like this: There are four screens (windows), in the first screen is the Com1 active frequency, in the second there is Com1 Standby frequency, these are displayed when Com1 Switch is selected, when Com2 Switch is active the Com1 frequency, are replace by the Com2 frequencies. The Nav1 and Nav2 work the same in the other two windows (Screens). The code below does this, but changing the frequencies is the problem, as it uses only one Knob to change the Standby frequencies, so when Com1 is selected, I can change the stanby frequencies as I sould be able to, but this also changes the Com2 Standby frequency, the same happens with the other Knob, which is use for Nav1 and Nav2. Taken from the SDK COM_RADIO Sequentially selects the COM tuner digits for use with +/-. Follow by KEY_SELECT_2 for COM 2. If I am reading this right, when (>K:COM_RADIO) (>K:SELECT_2) is used it should only change Com2 stanby frequency, and not Com1's. What am I doing wrong ???? The Code:(L:Radio Switch,bool)(L:Com Swap,bool)(L:Nav Swap,bool)(L:Com1,bool)(L:Com2,bool)(L:Nav1,bool)(L:Nav2,bool)(A:Circuit general panel on, bool) (L:Radio Switch,bool) &&(L:Com1,bool)%((A:COM1 Active Frequency, MHz))%!6.2f!%((A:COM1 Standby Frequency, MHz))%!6.2f!(L:Com2,bool)%((A:COM2 Active Frequency, MHz))%!6.2f!%((A:COM2 Standby Frequency, MHz))%!6.2f!(L:Nav1,bool)%((A:Nav1 Active Frequency, MHz))%!6.2f!%((A:Nav1 Standby Frequency, MHz))%!6.2f!(L:Nav2,bool)%((A:Nav2 Active Frequency, MHz))%!6.2f!%((A:Nav2 Standby Frequency, MHz))%!6.2f!(L:Radio Switch,bool) ! (>L:Radio Switch,bool)(L:Com Swap,bool) ! (>L:Com Swap,bool) (>K:COM_RADIO) (>K:FREQUENCY_SWAP) (>K:COM2_RADIO_SWAP)(L:Nav Swap,bool) ! (>L:Nav Swap,bool) (>K:NAV_RADIO) (>K:FREQUENCY_SWAP) (>K:NAV_RADIO) (>K:SELECT_2) (>K:FREQUENCY_SWAP)(L:Com1,bool) ! (>L:Com1,bool) (L:Com1,bool) if{ 1 (L:Com2,bool) 0 (>L:Com2,bool) } (>K:COM1_TRANSMIT_SELECT) (L:Com2,bool) ! (>L:Com2,bool) (L:Com2,bool) if{ 1 (L:Com1,bool) 0 (>L:Com1,bool) } (>K:COM2_TRANSMIT_SELECT) (>K:COM_RADIO) (>K:SELECT_2) 0 (>K:COM_RADIO_WHOLE_DEC) (>K:COM2_RADIO_WHOLE_DEC)0 (>K:COM_RADIO_WHOLE_INC) (>K:COM2_RADIO_WHOLE_INC)0 (>K:COM_RADIO_FRACT_DEC) (>K:COM2_RADIO_FRACT_DEC)0 (>K:COM_RADIO_FRACT_INC) (>K:COM2_RADIO_FRACT_INC)0 (>K:NAV1_RADIO_WHOLE_DEC) (>K:NAV2_RADIO_WHOLE_DEC)0 (>K:NAV1_RADIO_WHOLE_INC) (>K:NAV2_RADIO_WHOLE_INC) 0 (>K:NAV1_RADIO_FRACT_DEC) (>K:NAV2_RADIO_FRACT_DEC)0 (>K:NAV1_RADIO_FRACT_INC) (>K:NAV2_RADIO_FRACT_INC)(L:Nav1,bool) ! (>L:Nav1,bool) (L:Nav1,bool) if{ 1 (L:Nav2,bool) 0 (>L:Nav2,bool) } (L:Nav2,bool) ! (>L:Nav2,bool) (L:Nav2,bool) if{ 1 (L:Nav1,bool) 0 (>L:Nav1,bool) } (>K:NAV_RADIO) (>K:SELECT_2 )

Share this post


Link to post
Share on other sites

Hello A320 Try this code from my Collins radios change and stores standby for nav1 should work for nav2 & comms. %((A:NAV1 ACTIVE FREQUENCY, MHz))%!6.2f!%((A:NAV1 STANDBY FREQUENCY, MHz))%!6.2f!NAV1 TRANSFER0 (>K:NAV1_RADIO_SWAP)(>K:NAV1_RADIO_WHOLE_INC)(>K:NAV1_RADIO_WHOLE_INC)(>K:NAV1_RADIO_WHOLE_DEC)(>K:NAV1_RADIO_FRACT_INC)(>K:NAV1_RADIO_FRACT_INC)(>K:NAV1_RADIO_FRACT_DEC)


Paul EGLD

Share this post


Link to post
Share on other sites

Hi,Not tested but try something like:Switch to select nav, adf and com:(L:Navcom,enum) In the click area for selection:(L:Navcom,enum) 1 - 0 max (>L:Navcom,enum) (L:Navcom,enum) 1 + 5 min (>L:Navcom,enum) And for changing frequency's:(L:Navcom,enum) 0 == if{ com1 inc and dec } (L:Navcom,enum) 1 == if{ com2 inc and dec } (L:Navcom,enum) 2 == if{ nav1 inc and dec } (L:Navcom,enum) 3 == if{ nav2 inc and dec } (L:Navcom,enum) 4 == if{ adf1 inc and dec } (L:Navcom,enum) 5 == if{ adf2 inc and dec } In the windows:com1 com2 nav1 nav2 adf1 adf2 6 (L:Navcom,enum) caseOff course not my abbreviated formulas!!Use FormattedText.Hope it helps,Jan"Beatus ille qui procul negotiis..."

Share this post


Link to post
Share on other sites
Guest A320 Co-Pilot

HiThanks for the posts. I have spent a good few hours, working on this and it was not till I saw Jan's post that I realised what was missing. Com1,bool and Com2,bool and Nav1,bool and Nav2,bool from the clicks. If Com1 switch is selected, then only Com1 standby frequiences will be changed, same applies with Com2, Nav1 etc. Working code:(A:Avionics master switch,bool)(L:Com Swap,bool)(L:Nav Swap,bool)(A:Circuit general panel on, bool) (A:Avionics master switch,bool) &&(L:Com1,bool)(L:Com2,bool)(L:Nav1,bool)(L:Nav2,bool)(L:Com1,bool)%((A:COM1 Active Frequency, MHz))%!6.2f!%((A:COM1 Standby Frequency, MHz))%!6.2f!(L:Com2,bool)%((A:COM2 Active Frequency, MHz))%!6.2f!%((A:COM2 Standby Frequency, MHz))%!6.2f!(L:Nav1,bool)%((A:Nav1 Active Frequency, MHz))%!6.2f!%((A:Nav1 Standby Frequency, MHz))%!6.2f!(L:Nav2,bool)%((A:Nav2 Active Frequency, MHz))%!6.2f!%((A:Nav2 Standby Frequency, MHz))%!6.2f!(L:Com Swap,bool) ! (>L:Com Swap,bool) (L:Com1,bool) if{ 1 (>K:COM_RADIO) (>K:FREQUENCY_SWAP) } els{ (L:Com2,bool) if{ 1 (>K:COM2_RADIO_SWAP) } } (L:Nav Swap,bool) ! (>L:Nav Swap,bool) (L:Nav1,bool) if{ 1 (>K:NAV_RADIO) (>K:FREQUENCY_SWAP) } els{ (L:Nav2,bool) if{ 1 (>K:NAV_RADIO) (>K:SELECT_2) (>K:FREQUENCY_SWAP) } }(L:Com1,bool) ! (>L:Com1,bool) (L:Com1,bool) if{ 1 (L:Com2,bool) 0 (>L:Com2,bool) } (>K:COM1_TRANSMIT_SELECT) (L:Com2,bool) ! (>L:Com2,bool) (L:Com2,bool) if{ 1 (L:Com1,bool) 0 (>L:Com1,bool) } (>K:COM2_TRANSMIT_SELECT) (L:Com1,bool) if{ 1 (>K:COM_RADIO_WHOLE_DEC) } els{ (L:Com2,bool) if{ 1 (>K:COM2_RADIO_WHOLE_DEC) } } (L:Com1,bool) if{ 1 (>K:COM_RADIO_WHOLE_INC) } els{ (L:Com2,bool) if{ 1 (>K:COM2_RADIO_WHOLE_INC) } } (L:Com1,bool) if{ 1 (>K:COM_RADIO_FRACT_DEC) } els{ (L:Com2,bool) if{ 1 (>K:COM2_RADIO_FRACT_DEC) } } (L:Com1,bool) if{ 1 (>K:COM_RADIO_FRACT_INC) } els{ (L:Com2,bool) if{ 1 (>K:COM2_RADIO_FRACT_INC) } } (L:Nav1,bool) if{ 1 (>K:NAV1_RADIO_WHOLE_DEC) } els{ (L:Nav2,bool) if{ 1 (>K:NAV2_RADIO_WHOLE_DEC) } } (L:Nav1,bool) if{ 1 (>K:NAV1_RADIO_WHOLE_INC) } els{ (L:Nav2,bool) if{ 1 (>K:NAV2_RADIO_WHOLE_INC) } } (L:Nav1,bool) if{ 1 (>K:NAV1_RADIO_FRACT_DEC) } els{ (L:Nav2,bool) if{ 1 (>K:NAV2_RADIO_FRACT_DEC) } } (L:Nav1,bool) if{ 1 (>K:NAV1_RADIO_FRACT_INC) } els{ (L:Nav2,bool) if{ 1 (>K:NAV2_RADIO_FRACT_INC) } } (L:Nav1,bool) ! (>L:Nav1,bool) (L:Nav1,bool) if{ 1 (L:Nav2,bool) 0 (>L:Nav2,bool) } (L:Nav2,bool) ! (>L:Nav2,bool) (L:Nav2,bool) if{ 1 (L:Nav1,bool) 0 (>L:Nav1,bool) }

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...