Jump to content
Sign in to follow this  
N520AT

Majestic Q400 MFD Range Controls

Recommended Posts

I couldn't add this to the existing Majestic Q400 LINDA page but if anyone needs to assign range controls to the Majestic Q400 (not just increase or decrease), here is the code. I'm not much of a coder but I figured if anyone needed it I should share. This would be used with a rotary switch instead of a toggle or similar. Just copy and paste this into your Majestic Q400 User Functions code file and you should be good to go.

 

function Ped_range_10 ()
    ipc.writeLvar("L:PED_CPT_RANGE_KNOB", 0)
    Ped_Range_show ()
end

function Ped_range_20 ()
    ipc.writeLvar("L:PED_CPT_RANGE_KNOB", 1)
    Ped_Range_show ()
end

function Ped_range_40 ()
    ipc.writeLvar("L:PED_CPT_RANGE_KNOB", 2)
    Ped_Range_show ()
end

function Ped_range_80 ()
    ipc.writeLvar("L:PED_CPT_RANGE_KNOB", 3)
    Ped_Range_show ()
end

function Ped_range_160 ()
    ipc.writeLvar("L:PED_CPT_RANGE_KNOB", 4)
    Ped_Range_show ()
end

function Ped_range_240 ()
    ipc.writeLvar("L:PED_CPT_RANGE_KNOB", 5)
    Ped_Range_show ()
end

 

  • Like 1

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...