Here is what I've found from there coding. For torque on engine 1 they use A:ENG TORQUE:1, ft-lbs) 12 * 14 / 1260. now on the gauge it shows max of 2000 ft-lbs. How can I code it to read correctly. Rotation is correct, it probably has to do with there coding addition the 12 *14. Here is my code below. Any help guys would be appreciated.
Code: Select all
--Engine1 Torque--
function new_trq1(trq1)
trq1 = var_cap(trq1, 0, 2000)
img_rotate(img_needle1, 244/2000 *trq1 -122 )
trq1_text = var_round(trq1,0)
txt_set(txt_trq1,trq1_text)
end
fsx_variable_subscribe("ENG TORQUE:1", "foot pounds", new_trq1)