Jump to content

VHF COMM (device 20), set_frequency() not working above 146.000 Mhz


Go to solution Solved by Flappie,

Recommended Posts

Posted

Trying to set frequency using

device(20):set_frequency(149975000)

makes the VHF COMM radio default to 146.000 Mhz. Trying to set any value above 146.000 Mhz causes this.

Setting the frequency to 149.975 Mhz in cockpit shows correctly when using

device(20):get_frequency()

 

Tested with DCS 2.9 Openbeta and 2.8.7.

Posted (edited)

Hi and thanks for answering!

Short answer:

You will find the behaviour using dcs-insight to execute these API. See signature. There is no need for a particular mission, just a vanilla runway mission.

Longer answer:

DCS-BIOS has been revamped, core has been completely re-written and with this new dcs-bios version radio controls have been introduced which uses these two APIs. DCSFP will move to use these APIs where possible since it is much simpler than dialing in the new frequency via the radio's dials. It was during DCSFP development I found this out.

 

 

insight.png

Edited by ArturDCS
  • 2 weeks later...
  • 4 weeks later...
  • Solution
Posted (edited)

Hi. I've installed dcs-insight and this is what I see in the Huey:

  • getDevice:getFrequency(20) gives me a correct value for 127.000 (127000923).
  • getDevice:getFrequency(20) gives me a correct value for 149.975 (149975350).
  • getDevice:setFrequency(20, 127000923) briefly sets VHF to 127.000 then the frequency returns to the one I set in the cockpit.
  • getDevice:setFrequency(20, 145000000) briefly sets VHF to 145.000 then the frequency returns to the one I set in the cockpit.
  • getDevice:setFrequency(20, 149975944) briefly sets VHF to 146.000 then the frequency returns to the one I set in the cockpit.

I'll report this.

image.png

image.png

Edited by Flappie

---

  • Recently Browsing   0 members

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