Lawlcat Posted September 25, 2014 Posted September 25, 2014 As the title says, wondering if anyone is working on a Helios profile for the MiG-21. I'd try to make one myself but I'm not competent or artistic enough to make a decent one. Unfortunately for me the Fishbed is something I have to look down often in, to see instruments, and its starting to make my neck hurt with trackIR :)
s1man Posted January 6, 2015 Posted January 6, 2015 (edited) Bit late but just worked out some bits, using the FC2 interface for helios and just exporting to that in the export.lua. what ive got so far.. though some of the numbers are a bit out at the moment, lots of trial and error. Hopefully some of the great lua peeps can do much better. function ProcessMig21Exports() MainPanel = GetDevice(0) --IAS local ias = MainPanel:get_argument_value(100) local airspeed_normalized = MainPanel:get_argument_value(100) local airspeed = (airspeed_normalized * 1000) * 0.561 --eng rpm local engRpm = MainPanel:get_argument_value(50) local engOut = engRpm * 100 --pitch local pitch = MainPanel:get_argument_value(109) pitch = pitch * 1.5 --bank local bank = MainPanel:get_argument_value(108) bank = bank * 3.4 --vvi local vvi = MainPanel:get_argument_value(106) vvi = (vvi * 20) * 2 --aoa aka uua local aoa = MainPanel:get_argument_value(105) aoa = aoa * 0.75 -- baro alt local altBar = MainPanel:get_argument_value(112) altBar = (altBar * 10000) * 3 --radio Altimeter local altRad = MainPanel:get_argument_value(103) altRad = (altRad * 1000) / 2.5 --hsi aka ksi course indicator local hsi = MainPanel:get_argument_value(111) hsi = (math.pi * 2.0) * hsi hsi = hsi * -1 --log_file:write(hsi) --log_file:write("\n") SendData("9", string.format("%.2f", engOut) ) SendData("14", string.format("%.2f", airspeed ) ) SendData("1", string.format("%.2f", pitch * 57.3) ) SendData("2", string.format("%.2f", bank * 57.3) ) SendData("16", string.format("%.2f", aoa * 57.3 ) ) SendData("13", string.format("%.2f", vvi) ) SendData("4", string.format("%.2f", altBar) ) SendData("5", string.format("%.2f", altRad) ) SendData("8", string.format("%.2f", (hsi * 57.3)) ) FlushData() end Edited January 6, 2015 by s1man [sIGPIC][/sIGPIC]
Ralphk Posted January 6, 2015 Posted January 6, 2015 yeahhh.... i was thinking of this as well! we need it...
Recommended Posts