Hello
I'm currently developing a plugin for Teamspeak3 and DCS:BS to have automatic radio functionality. The Plugin will automatically switch the TS3 channels according to the seetings in BS. It will take care of power switches and I'm planning also to calculate distance und terrain limitations (which is not yet tested). So far everything is running well, except for one problem - so I have one or two questions, maybe there is someone around who can help me.
1. Question
I'm requesting the radio settings in the export.lua as described in the wiki:
http://en.wiki.eagle.ru/wiki/Export_1_0_1
The problem is, that when I change the frequency of the R828 (red rotary knob on the right side), the value in the export.lua is not changing. For the R800 the code is working as expected (of course I changed the device id).
The "isOn" and "soundIsOn" state is working for both devices as expected. Below I stated shortly how I'm accessing the data.
local radioDevice = GetDevice(<radio device id>)
local [b]state[/b] = radioDevice:l_get_state()
local myfrequency = state.frequency
Maybe I have to define the frequencys somewhere in config files (maybe similar to the NDB's), but I found nothing?
2. Question
It not directly a problem, because I found a (not so good) workaround, but does anybody know a way how to request the state of the SPU9-Intercom Switch (Channelselector: VHF1/VHF2/SW/Ground)? I found some code in the script files, but this did not helpe me much.
3.
What is your general opinion about such a plugin? Do you like it, or is it useless? Do you have more ideas?
Thanks for your help in advance
Pixel
Sorry for bad english :(