Sign in to follow this  
Stefan01

PMDG 747 QOTSII module version 1.1 trim function

Recommended Posts

enclosed my trim function. I think it shows better the value of the trim setting.

feel free to use it in your user.lua.
Happy Landings Stefan Liebe

function B747_Elevator_Trim_show ()

    ElevVal = ipc.readUW(0x0BC2)
    if ElevVal >= 49000 then
    ElevVal = (ElevVal - 65487)
    end

ElevTrimVar = (ElevVal*0.00074+3)
    DspShow("Elev", string.format("%2.1f", ElevTrimVar))

end


function B747_Elevator_Trim_up ()

    ipc.control(65615)
    B747_Elevator_Trim_show ()
end

function B747_Elevator_Trim_dn ()

    ipc.control(65607)
    B747_Elevator_Trim_show ()
end


function B747_Elevator_Trim_upfast ()

    i = 0
    while i <= 4 do
    ipc.control(65615)
    i = i + 1
    end
    B747_Elevator_Trim_show ()
end

function B747_Elevator_Trim_dnfast ()

    i = 0
    while i <= 4 do
    ipc.control(65607)
    i = i + 1
    end
    B747_Elevator_Trim_show ()
end

 

Share this post


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

Will try it and add it to the module with your permission!

thanks

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