Jump to content

F-14B, how to export radio frequencies?


Recommended Posts

Posted

We are making a DCS-BIOS profile for the F-14B so the radios can be used with the Saitek Radio Panel PZ69.

 

 

I am having problems finding information on the radio frequencies. We can manipulate the toggle dials to change (Up/Down) the frequency but not read the frequency.

The frequency can not be deduced by reading the dial positions as they are Up/Down type dials (3 position dial). There are no "elements" either that would show the actual values.

I can see in the .lua(s) code for drawing what I understand the digits on the radio display but still, don't know how I would read the values.

 

(freq_string@freq_disp.lua)

 

 

 

Any ideas?

Posted

Perhaps Tacno from Universradio or Ciribob from SRS can help you?

[sIGPIC][/sIGPIC]

 

Commodore 64 | MOS6510 | VIC-II | SID6581 | DD 1541 | KCS Power Cartridge | 64Kb | 32Kb external | Arcade Turbo

Posted

Yup, had forgotten about SRS. In the source code it is clear how he is doing it. Thanks for the tip!

Posted
If you find out how, can you let me know, too? Spend about 15 hours the other day trying to make it work with no success.

Working on it right now, I will post info once I have something working.

Posted

That is how I got it out now. I had no idea there are get_frequency() or set_frequency() functions. Well learn everyday.

This is for DCS-BIOS.

So if the frequency is "225.975", first function returns "225" and second "975". That will be OK for DCSFP.

 

[color=#d4d4d4][font=Consolas][color=#c586c0]function getARC159_High_Frequency()
   --Export : 225000192.000000
   local arc_159 = GetDevice(3)
   local freq = tostring(arc_159:get_frequency())
   freq = string.sub(freq, 0, 3)
   return tonumber(freq)    
end
function getARC159_Low_Frequency()
   --Export : 225000192.000000
   local arc_159 = GetDevice(3)
   local freq = tostring(arc_159:get_frequency())
   freq = string.sub(freq, 4, 6)
   return tonumber(freq)    
end

defineIntegerFromGetter("PLT_UHF_LOW_FREQ", getARC159_Low_Frequency, 999, "UHF", "Pilot Low ARC-159 Frequency")
defineIntegerFromGetter("PLT_UHF_HIGH_FREQ", getARC159_High_Frequency, 400, "UHF", "Pilot High ARC-159 Frequency")[/color][/font][/color]

  • Recently Browsing   0 members

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