Jump to content

Yogi_25

Members
  • Posts

    5
  • Joined

  • Last visited

Everything posted by Yogi_25

  1. Hello @Bailey, I have a proposition for the F-4 export script. At the moment the reticle depression button exports a rounded value. This means that for depressions like 17 and 34 mils, the result is rounded to 0.1. Could you update the value to 3 digits, so as to have respectively 0.07 and 0.145 ? This require the following change from --line 205 [267] = "%.1f", -- Reticle_Depress_Knob {0, 0, 1, Change Reticle Depression (mil)} to --line 205 [267] = "%.3f", -- Reticle_Depress_Knob {0, 0, 1, Change Reticle Depression (mil)}
  2. Hello @salival007, you can get it here, it is part of the package: https://github.com/asherao/DCS-ExportScripts/blob/master/docu/StreamDeck Examples/F-4E.streamDeckProfile
  3. Hello, I tested more thoroughly the new code for the Pilot_Altimeter : In the last 50 ft, between x950 and z000 I get one more thousand than expected before going back to normal. If I pass the new thousand quite slowly, one excess digit is displayed. It is a "1" in all cases (11000, 21000, 31000 instead of 1000, 2000, 3000) It is most striking between 0950 and 1000, because you get 0950 then 1951. Reaching 1000, you get then, when climbong slowly, 11000 before getting back to 1000. This happens in all tested cases between 0900 and 23000 ft Hop this helps... P.S. no Phantom were harmed during those tests.
  4. Ah ok thanks @bones1014. The latest lua of this morning's merge is OK - I flew a few minutes ago and it was OK.
  5. Hello, Awesome work here, congratulations. About the barometric altimeter, I added some code that works great for me. I did a pull request yesterday, just in case. function ExportScript.ALT_indicator(mainPanelDevice) local ones = mainPanelDevice:get_argument_value(91) * 100 local hundreds = round(mainPanelDevice:get_argument_value(92) * 10) local thousands = round(mainPanelDevice:get_argument_value(93) * 10) local tenthousands = round(mainPanelDevice:get_argument_value(94) * 10) local ALT = tenthousands * 10000 + thousands * 1000 + hundreds *100 + ones ExportScript.Tools.SendData(export_ids.BARO_ALT,string.format("%05.0f", ALT)) end I see that in the last merge the arguments for the altimeter were changed from "%.1f" to "%.3f", is there a specific reason ? I checked both codes and they worked OK for me, but I'm curious since this implies more computing with 3 digit outputs.
×
×
  • Create New...