Jump to content

Sign in to follow this  
chansen

QW 787 Radio/Audio Panel

Recommended Posts

Would be great if you could support the buttons in the Audio Panel so it was posible to select Mic for VHF and buttons for listen into VHF1-3

It will be great having these when flying Vatsim etc...

 

 


Regards

Claus

System : HP Reverb Pro, Intel i9 9900K 5,0 Ghz OC, RTX2080ti 11 GB, 32GB RAM, 2 X M2 500GB

www.737sim.dk

Share this post


Link to post
Share on other sites

Trying to make it my self using this code, don't work probaly doing some thing wrong 


function QW_ACP_AUDIO_1_on ()
local lvar = 'QW_ACP_AUDIO_1_Switch'
local lval = ipc.readLvar(lvar)
    if lval ~= 1 then
        ipc.writeLvar(lvar, '1')
        DspShow('STRB', 'on')  (STRB was copied from other code should probaly be some else)
        QW_Switch_Large()
    end
end

the LVar is QW_ACP_AUDIO_1 according to their manual, anyone who can help ?

 

 


Regards

Claus

System : HP Reverb Pro, Intel i9 9900K 5,0 Ghz OC, RTX2080ti 11 GB, 32GB RAM, 2 X M2 500GB

www.737sim.dk

Share this post


Link to post
Share on other sites

Although I provided the initial QW787 module it is not an aircraft I use or am familiar with. 

You can confirm that you have the correct Lvar by using the LINDA Tracer. You can monitor, read and set values and see what the resulting switch response is. This is essential information before you start writing any cold.

You can quickly test any new or modified function by saving the module and then right clicking on the function name in the LINDA Editor. Make sure you place any new or modified code in the aircraft’s user.lua file not the actions.lua file. 

The DspShow function is used to give users a visual indication on the VRi Combo panels. The text is the short message.


Andrew Gransden

Scotland, UK

LINDA Support/Developer - VATSIM and BAVirtual - Airbus Flyer

i7 1TB SSD GTX980 - FSX/P3D - Aerosoft Airbus A318/A319/A320/A321 - FS2Crew

Share this post


Link to post
Share on other sites

Hi Andrew 

Thanks for reaching out. I hae paced it in user.lua

Trying to make Audio buttons to work and a toggle. 

function QW_ACP_AUDIO_1_on ()
local lvar = 'QW_ACP_AUDIO_1'
local lval = ipc.readLvar(lvar)
    if lval ~= 1 then
        ipc.writeLvar(lvar, '1')
        DspShow('AUDIOI1', 'on')
        QW_Switch_Large()
    end
end

function QW_ACP_AUDIO_1_off ()
local lvar = 'QW_ACP_AUDIO_1'
local lval = ipc.readLvar(lvar)
    if lval ~= 1 then
        ipc.writeLvar(lvar, '0')
        DspShow('AUDIOI1 off', 'on')
        QW_Switch_Large()
    end
end

function QW_ACP_AUDIO_1_toggle ()
local lvar = 'QW_ACP_AUDIO_1'
local lval = ipc.readLvar(lvar)
    if lval ~= 0 then
        QW_ACP_AUDIO_1_off()
    else
        QW_ACP_AUDIO_1_on()
    end
end

But it don't seem to work. I can see there is defined two types of switches Small and large what is the difference ?

Thanks

 


Regards

Claus

System : HP Reverb Pro, Intel i9 9900K 5,0 Ghz OC, RTX2080ti 11 GB, 32GB RAM, 2 X M2 500GB

www.737sim.dk

Share this post


Link to post
Share on other sites

I don't know what buttons/switches in the QW787 cockpit you are trying to use. Is it the Comms Audio panel on the centre pedestal?

I have checked the available QW_ACP_AUDIO_ Lvars and only 2, 5 and 9 are available. There is no QW_ACP_AUDIO_1.

The QW_Switch_Large/_Small functions simply make a switch sound (click). The DspShow text is limited to 4 characters eachqw - the first is the function label and the second the on/off action.

Finally, the last additions I made to the QW787 module (1.1) had to make use of mouse macros (QW787.MCRO) because not all virtual cockpit buttons/switches were available. The use of macros is a completely different story and I am unable to educate you on their use. It would take too much time.

 


Andrew Gransden

Scotland, UK

LINDA Support/Developer - VATSIM and BAVirtual - Airbus Flyer

i7 1TB SSD GTX980 - FSX/P3D - Aerosoft Airbus A318/A319/A320/A321 - FS2Crew

Share this post


Link to post
Share on other sites

Thakns for your answer.

Thought  I could use QW_ACP_AUDIO_1, 2, &3 according to their document

Active VHF  QW_ACP_AUDIO_1 0=Off, 1=On 
Active VHF  QW_ACP_AUDIO_2 0=Off, 1=On 
Active VHF  QW_ACP_AUDIO_3 0=Off, 1=On 

 

 


Regards

Claus

System : HP Reverb Pro, Intel i9 9900K 5,0 Ghz OC, RTX2080ti 11 GB, 32GB RAM, 2 X M2 500GB

www.737sim.dk

Share this post


Link to post
Share on other sites

QW has stated that these Lvars are defined as you say but they are not made available to LINDA (or other software) until the buttons/switch is operated manually with the mouse. They acknowledge this on their forum. That is why I had to look at using mouse macros.

 


Andrew Gransden

Scotland, UK

LINDA Support/Developer - VATSIM and BAVirtual - Airbus Flyer

i7 1TB SSD GTX980 - FSX/P3D - Aerosoft Airbus A318/A319/A320/A321 - FS2Crew

Share this post


Link to post
Share on other sites

Thanks Andrew 

Saw some tutorials about macros have made som for many years ago.... 😉


Regards

Claus

System : HP Reverb Pro, Intel i9 9900K 5,0 Ghz OC, RTX2080ti 11 GB, 32GB RAM, 2 X M2 500GB

www.737sim.dk

Share this post


Link to post
Share on other sites

Just an update. You got me hooked there went into FSUIPC and made 10 Macros, no need for code them into LINDA just assigned them in FSUIPC and now my Aduio Panel work in QW and in VR as well

Thanks !


Regards

Claus

System : HP Reverb Pro, Intel i9 9900K 5,0 Ghz OC, RTX2080ti 11 GB, 32GB RAM, 2 X M2 500GB

www.737sim.dk

Share this post


Link to post
Share on other sites

Well done.


Andrew Gransden

Scotland, UK

LINDA Support/Developer - VATSIM and BAVirtual - Airbus Flyer

i7 1TB SSD GTX980 - FSX/P3D - Aerosoft Airbus A318/A319/A320/A321 - FS2Crew

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.
  • Donation Goals

    AVSIM's 2020 Fundraising Goal

    Donate to our annual general fundraising goal. This donation keeps our doors open and providing you service 24 x 7 x 365. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. We reset this goal every new year for the following year's goal.


    50%
    $12,660.00 of $25,000.00 Donate Now
×
×
  • Create New...