Sign in to follow this  
Headley

PMDG 747-8 TCAS logic not correct

Recommended Posts

Posted (edited)

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

Share this post


Link to post
Share on other sites
Help AVSIM continue to serve you!
Please donate today!

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

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

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