Jump to content

Recommended Posts

Posted

I am building a Fly With Lua HUD and have everything working as desired, but struggling to find the source (or means to calculate) the TRQ% indication in the MFD. I've tried all sorts of calculations (e.g. engine torque divided by  max torque, etc being careful to normalize metrics) but failing.  Any thoughts?  (TBM900 1.1.13)  Thanks.

Posted (edited)

I built something with

DataRef("Torquenm", "sim/cockpit2/engine/indicators/torque_n_mtr","readonly",0)

and

imgui.TextUnformatted("Torque : " .. math.floor(Torquenm/30) .. "%")

I just did some checks:

The dataref-formula and the MFD match at values > 35%
Lower than that, the dataref shows a lower value
10/16
20/25
30/32

Edited by Ch.Cole
Checked it...
Posted

Thank you.  I am currently using a poorer surrogate, "sim/flightmodel2/engines/throttle_used_ratio" and seeing similar behavior.  The "torque" dataref is a better starting place, so I will play with that.  Perhaps with some math or table lookups to calibrate the reported TRQ% indication at the lower power levels.  Not sure where the fancy math is being performed by the aircraft to provide the reported torque.  Appreciate the response.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...