Guest Posted October 31, 2023 Posted October 31, 2023 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.
Flappie Posted November 1, 2023 Posted November 1, 2023 Hi. I don't have the knowledge to do this. Would you please attach a mission example? ---
Guest Posted November 2, 2023 Posted November 2, 2023 (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. Edited November 2, 2023 by ArturDCS
Solution Flappie Posted December 9, 2023 Solution Posted December 9, 2023 (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. Edited December 9, 2023 by Flappie ---
Recommended Posts