Jump to content

Sign in to follow this  
Headley

PMDG 747-8 TCAS logic not correct

Recommended Posts

Hello,

In the module for the PMDG 747-8 the TCAS-logic is not correct.

When selecting "TCAS MODE TA/RA" the switch goes all the way right to the "ALT"-position.

I have changed as follow (in bold and blue) and works fine, but maybe you can change it in a following release?

 

-- ## Ped TCAS ###############

-- $$ TCAS Selector

function PMDG_TCAS_show ()
    ipc.sleep(10)
    TcasVar = ipc.readLvar("switch_1296_74X")
    acftname = ipc.readSTR("3D00", 35)
    if string.find(acftname,"747-4",0,true) then

    if TcasVar == 0 then TcasTxt = "STBY"
    elseif TcasVar == 10 then TcasTxt = "ALT"
    elseif TcasVar == 20 then TcasTxt = "XPDR"
    elseif TcasVar == 30 then TcasTxt = "TA"
    elseif TcasVar == 40 then TcasTxt = "TARA"
    end

    elseif string.find(acftname,"747-8",0,true) then

    if TcasVar == 0 then TcasTxt = "STBY"
    elseif TcasVar == 10 then TcasTxt = "XPDR"
    elseif TcasVar == 20 then TcasTxt = "TA"
    elseif TcasVar == 30 then TcasTxt = "TARA"
    elseif TcasVar == 40 then TcasTxt = "ALT"
    end

    end

    if _MCP1() then
            DspShow ("TCAS", TcasTxt)
        else
            DspRadioShort(TcasTxt)
    end
end


function TCAS_MODE_stby ()
    ipc.control(PMDGBaseVariable +1296,0)
    PMDG_TCAS_show ()
end

function TCAS_MODE_alt ()
    ipc.control(PMDGBaseVariable +1296,4)
    PMDG_TCAS_show ()
end

function TCAS_MODE_xpndr ()
    ipc.control(PMDGBaseVariable +1296,1)
    PMDG_TCAS_show ()
end

function TCAS_MODE_TA ()
    ipc.control(PMDGBaseVariable +1296,2)
    PMDG_TCAS_show ()
end

function TCAS_MODE_TARA ()
    ipc.control(PMDGBaseVariable +1296,3)
    PMDG_TCAS_show ()
end

function TCAS_MODE_inc ()
    ipc.control(PMDGBaseVariable +1296,256)
    PMDG_TCAS_show ()
end

function TCAS_MODE_dec ()
    ipc.control(PMDGBaseVariable +1296,128)
    PMDG_TCAS_show ()
end

function TCAS_TEST ()
    ipc.control(PMDGBaseVariable +1297,1)
    DspShow ("TCAS", "on", "TCAS", "on")

end
 

I'm using Linda 3.0.9

Edited by Headley

Regards,

William Vrielynck

Share this post


Link to post
Share on other sites

Hi Guenter,

I see in this threat that you have changed the TCAS rotary.

The problem i mentioned is in the latest version 1.5 (downloaded today 02/10/2018).


Regards,

William Vrielynck

Share this post


Link to post
Share on other sites

Ah, ok, I have just changed the TCAS_show function, but not the TCAS_Modes itself

 

I have to test it against the 744, because there is a difference to the 748. Should then fit for both versions

Thanks for the hint


Guenter Steiner
--------------------------------------------------------------------------------------
LINDA Lua Integrated Non-complex Device Assigning

Betatester for: A2A, Hifi, Simstarter, AivlaSoft 
--------------------------------------------------------------------------------------

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.


    28%
    $7,080.00 of $25,000.00 Donate Now
×
×
  • Create New...