Jump to content
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

 


regards
Stefan Liebe

Share this post


Link to post
Share on other sites

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

thanks


Guenter Steiner
--------------------------------------------------------------------------------------

Betatester for: A2A, LORBY, FSR-Pillow Tester
--------------------------------------------------------------------------------------

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