towsim Posted May 20, 2012 Share Posted May 20, 2012 Hi, does someone know how to read out the current IFF/SIF code and switch setting with a LUA script. Something like a LoGet... function or similar? As alternative it could be the 'group' and 'own ID'. I would need the values for a identification procedure in a GCA radar application. Regards Mike [sIGPIC][/sIGPIC] Link to comment Share on other sites More sharing options...
Gremlin77 Posted May 24, 2012 Share Posted May 24, 2012 you just have to use the getdevice funftion to create a device, in your case the iff. with get_argument_value you can get the position of the switches - from these values you can calculate the code ( just add the positions) visit my build thread Gremlin's A-10 :thumbup: http://forums.eagle.ru/showthread.php?t=86916 Link to comment Share on other sites More sharing options...
towsim Posted May 25, 2012 Author Share Posted May 25, 2012 Hi , thank you for the response. Unfortunately it did not work. After I inspected 'performClickableAction.lua' it seems, that 'get_argument_value' is implemented only for the main panel. The IFF has only 2 functions: 'performClickableAction' and 'SetCommand'. But it may be, that my interpretation is not right. There is almost no possibility to determine the error source if a function does not work. Regards Mike [sIGPIC][/sIGPIC] Link to comment Share on other sites More sharing options...
Gremlin77 Posted May 26, 2012 Share Posted May 26, 2012 (edited) sorry, my fault. you are right. just getdevice(0) for mainpanel. then get_argument_value for 209 to 214 look in clickabledata.lua under --IFF. then you get the right values. mainpanel = getdevice(0) firstwheel = mainpanel:get_argument_value(209) ... Edited May 26, 2012 by Gremlin77 visit my build thread Gremlin's A-10 :thumbup: http://forums.eagle.ru/showthread.php?t=86916 Link to comment Share on other sites More sharing options...
towsim Posted May 26, 2012 Author Share Posted May 26, 2012 Hi Gremlin77, that worked!! We are able now to handle realistic identifications in our radar ASR application. Excellent! Mike [sIGPIC][/sIGPIC] Link to comment Share on other sites More sharing options...
towsim Posted June 9, 2012 Author Share Posted June 9, 2012 Hi all, today we made a very successful beta test with our new ATC tool. We were simulating ASR and PAR with several aircraft under radar control. My special thank goes to Gremlin77 who gave the key tip so that we can use the IFF/SIF codes for identification. Thanks Mike [sIGPIC][/sIGPIC] Link to comment Share on other sites More sharing options...
Recommended Posts