dwpenney Posted March 5, 2014 Posted March 5, 2014 Hey guys. I had this working in DCS about a year ago. That was a much older version of DCS and a different version of MIST. My problem is that either the code I have is not working in the newer DCS/MIST or I just can't tune the frequency in correctly in the Huey. It could be the latter, or a combination of changes in the Huey that is making this not work. So the code I had was this (please excuse the typos as I am modifying the original code to have as few variables in it and therefore, hopefully, improve it's readability): position = Unit.getByName(src_unit_info.spawned_unit.name):getPosition().p transponder_freq = 250000 freq_txt = "" .. (transponder_freq / 1000 ) .. "kHz" temp_id = mist.scheduleFunction( trigger.action.radioTransmission, {"VHF_WarningTone.wav", position, 0, false, transponder_freq, 1000}, timer.getTime() + 10, 15) Now this worked. The .wav was included in the .miz file and I was able to start the Huey, turn the ADF to the frequency, see the signal strength indicator spike and head the wav (morse code) with the proper setting on the ADF. Now, in the new DCS/MIST, I have the following code (please excuse the comments interspersed in there as I was trying to make sure I had everything lined up): source_position = Unit.getByName(val.unitName):getPosition().p source_freq = 250000 temp_id = mist.scheduleFunction( -- Function trigger.action.radioTransmission, -- File Name, Vec3 position, AM|FM, loop?, freq, power {"VHF_WarningTone.wav", source_position, 0, false, source_freq, 500}, -- Time (now + transponder_delay) timer.getTime() + 10, -- repeat every n secs 15) Am I missing something obvious? I have a lower power in the second code block, but I am within a couple of km of the source position with the Huey. I get a signal strength indicator but I am hearing no sound. I added a function call to play the sound at the start of the mission just to make sure that it was found and sounded like it should. Any suggestions on how I can trouble shoot this with a different aircraft (in case it's the Huey)? Fridge ---------- Things which do you no good in aviation: 1) Altitude above you; 2) Runway behind you; 3) Fuel in the truck; 4) The airspeed you don't have.
dooom Posted March 9, 2014 Posted March 9, 2014 i know the CTTS.lua (COmplete Transport Script) has some working elements for Radio beacons. Have a look at it in the Scripts library ... its the one by Geloxo. Mind you, i would be interested in a solid process from within MIST if one could be found. Unfortunately I can only beg borrow and steal script code from those smarter than i... i can't help on th e troubleshooting front. ASUS Tuf Gaming Pro x570 / AMD Ryzen 7 5800X @ 3.8 / XFX Radeon 6900 XT / 64 GB DDR4 3200 "This was not in the Manual I did not read", cried the Noob" - BMBM, WWIIOL
Haukka81 Posted April 26, 2014 Posted April 26, 2014 Hey guys. I had this working in DCS about a year ago. That was a much older version of DCS and a different version of MIST. My problem is that either the code I have is not working in the newer DCS/MIST or I just can't tune the frequency in correctly in the Huey. It could be the latter, or a combination of changes in the Huey that is making this not work. So the code I had was this (please excuse the typos as I am modifying the original code to have as few variables in it and therefore, hopefully, improve it's readability): position = Unit.getByName(src_unit_info.spawned_unit.name):getPosition().p transponder_freq = 250000 freq_txt = "" .. (transponder_freq / 1000 ) .. "kHz" temp_id = mist.scheduleFunction( trigger.action.radioTransmission, {"VHF_WarningTone.wav", position, 0, false, transponder_freq, 1000}, timer.getTime() + 10, 15) Now this worked. The .wav was included in the .miz file and I was able to start the Huey, turn the ADF to the frequency, see the signal strength indicator spike and head the wav (morse code) with the proper setting on the ADF. Now, in the new DCS/MIST, I have the following code (please excuse the comments interspersed in there as I was trying to make sure I had everything lined up): source_position = Unit.getByName(val.unitName):getPosition().p source_freq = 250000 temp_id = mist.scheduleFunction( -- Function trigger.action.radioTransmission, -- File Name, Vec3 position, AM|FM, loop?, freq, power {"VHF_WarningTone.wav", source_position, 0, false, source_freq, 500}, -- Time (now + transponder_delay) timer.getTime() + 10, -- repeat every n secs 15) Am I missing something obvious? I have a lower power in the second code block, but I am within a couple of km of the source position with the Huey. I get a signal strength indicator but I am hearing no sound. I added a function call to play the sound at the start of the mission just to make sure that it was found and sounded like it should. Any suggestions on how I can trouble shoot this with a different aircraft (in case it's the Huey)? I try to get something like this to work in my mission too. Can anyone help ? i need to get FM transmission to go when blue side pilot is ejected and landed on ground ? so players can save them using hueys fm homing :helpsmilie: Oculus CV1, Odyssey, Pimax 5k+ (i5 8400, 24gb ddr4 3000mhz, 1080Ti OC ) [sIGPIC][/sIGPIC]
dwpenney Posted April 30, 2014 Author Posted April 30, 2014 That's exactly what I am doing in my script. On an Eject event, spawn a downed pilot (because I can't seem to access the one DCS generates) and set a transponder pinging from that pilots position with the above code. Fridge ---------- Things which do you no good in aviation: 1) Altitude above you; 2) Runway behind you; 3) Fuel in the truck; 4) The airspeed you don't have.
Haukka81 Posted April 30, 2014 Posted April 30, 2014 That's exactly what I am doing in my script. On an Eject event, spawn a downed pilot (because I can't seem to access the one DCS generates) and set a transponder pinging from that pilots position with the above code. Thanks, can i use your script ? :) Oculus CV1, Odyssey, Pimax 5k+ (i5 8400, 24gb ddr4 3000mhz, 1080Ti OC ) [sIGPIC][/sIGPIC]
Recommended Posts