vannav Posted November 9, 2015 Share Posted November 9, 2015 Is it possible to send a key from Air Manager. Need this for a special application. Thank You. van Link to comment Share on other sites More sharing options...
LNRalph Posted November 10, 2015 Share Posted November 10, 2015 With keys you mean specific keystrokes on the keyboard? That's not possible. But you can send events to change the frequency if that's what you're after. Link to comment Share on other sites More sharing options...
vannav Posted November 11, 2015 Author Share Posted November 11, 2015 In Air Manager rotating the com or nav dial is not usable as turning the dial with your finger on a touch screen the digits increase / decrease too fast to get the proper frequency set. Clicking with a mouse is fine and able to select proper frequency. I noticed on a touch screen any off / on switch works very well and is very sensitive. Multiple touch on dials does not work repeatably for selecting frequency. Just wish I could use touch ( not rotate ) to select frequency. Link to comment Share on other sites More sharing options...
LNRalph Posted November 11, 2015 Share Posted November 11, 2015 You can make it less sensitive with this function: http://siminnovations.com/wiki/index.php?title=Touch_setting Link to comment Share on other sites More sharing options...
vannav Posted November 11, 2015 Author Share Posted November 11, 2015 Thanks for your very quick replies Ralph. I am new to Lua with no programming experience. Just started to look at the logic.lua files. Complicated but in time I will understand it. Not sure where to insert this code for the Generic Bendix/King KX 165A I will try placing it in alternate locations to see if I can get it to work. Thank You again, van function callback(direction) print("dial has been turned another 90 degrees") end dial_id = dial_add("a.png", 100,100,100,100,callback) -- We want to get a dial tick every 90 degrees touch_setting(dial_id , "ROTATE_TICK", 90) -- We do not want to show highlighting on this dial touch_setting(dial_id , "SHOW_HIGHLIGHT", false) Link to comment Share on other sites More sharing options...
vannav Posted November 12, 2015 Author Share Posted November 12, 2015 The dial feature on Air Manager seems problematic as rotation on the screen surface to changes the frequency is too fast and very difficult to select proper frequency. Lua programming skills would be a definite plus for users but even my limited knowledge I was able to make some minor adjustments on clone gauges I made. Air Manager is truly a great program and I believe will have a great future. I am hoping the updates will address the dial rotation issue so I can continue my research and development. Link to comment Share on other sites More sharing options...
LNRalph Posted November 12, 2015 Share Posted November 12, 2015 It works like this, an example: combig = dial_add("dialbig.png", 229, 113, 85, 85, new_combig) touch_setting(combig, "ROTATE_TICK", 90) This causes the dial to trigger the callback function 'new_combig' every 90 degrees you rotate it. By default it's every 20 degrees, you can adjust the value to get as you like. Link to comment Share on other sites More sharing options...
vannav Posted November 12, 2015 Author Share Posted November 12, 2015 Inserted touch setting line 123 but no luck. Maybe an issue with my Windows 10 tablet. ACER ONE 10 S1002-145A (5-point multi-touch) Multi-gesture touch pad. I still love Air Manager and will keep working with it. Link to comment Share on other sites More sharing options...
LNRalph Posted November 12, 2015 Share Posted November 12, 2015 It's not the hardware, but maybe it's a bug in Air Manager. Did you try higher numbers, like 180? I will test it on my laptop tonight. Link to comment Share on other sites More sharing options...
vannav Posted November 12, 2015 Author Share Posted November 12, 2015 Tried 180 and also tried 270. No difference. Link to comment Share on other sites More sharing options...
Corjan Posted November 12, 2015 Share Posted November 12, 2015 Hi there, Just tried: touch_setting(setting_dial, "ROTATE_TICK", 90) It seems to work fine here, it gives me 4 callbacks every full circle. Could you send me the complete instrument? So I can see if I get the same result here. Sorry for the trouble, Corjan Link to comment Share on other sites More sharing options...
LNRalph Posted November 12, 2015 Share Posted November 12, 2015 It's about the Bendix King com/nav radio. I've also tried this one here, works fine. I must admit it's with the 2.1.1 beta, but that should not make any difference...I suppose... Link to comment Share on other sites More sharing options...
LNRalph Posted November 14, 2015 Share Posted November 14, 2015 Any luck so far? Maybe I should send you a modified instrument? Link to comment Share on other sites More sharing options...
vannav Posted November 14, 2015 Author Share Posted November 14, 2015 No luck so far. Link to comment Share on other sites More sharing options...
LNRalph Posted November 14, 2015 Share Posted November 14, 2015 Something wrong in the code. Which instrument is this? Did you modify the code? Link to comment Share on other sites More sharing options...
vannav Posted November 14, 2015 Author Share Posted November 14, 2015 Link to comment Share on other sites More sharing options...
vannav Posted November 14, 2015 Author Share Posted November 14, 2015 Only changed the size of KX165A.png to 800 x 254 to fit my 10 inch screen. I will retry with original Generic - Bendix/King KX165 TSO com1/nav1. 10 minutes will let you know. Link to comment Share on other sites More sharing options...
vannav Posted November 14, 2015 Author Share Posted November 14, 2015 Was really hoping it would work but sorry to say same error. Link to comment Share on other sites More sharing options...
vannav Posted November 14, 2015 Author Share Posted November 14, 2015 Has there been an update to the original Generic - Bendix/King KX165 TSO com1/nav1 ? Maybe I should re-download it ? Link to comment Share on other sites More sharing options...
vannav Posted November 14, 2015 Author Share Posted November 14, 2015 Original Generic - Bendix/King KX165 TSO com1/nav1 works fine until I insert touch_setting(setting_dial, "ROTATE_TICK", 90) Van Link to comment Share on other sites More sharing options...
vannav Posted November 14, 2015 Author Share Posted November 14, 2015 Really hoping I can get this to work for the rotation speed issue. Please forgive me as I do not want to be a pain. With out the rotation fix I might get by with buttons to adjust frequency but so far have not been able to modify code to make that idea work. Van Link to comment Share on other sites More sharing options...
LNRalph Posted November 14, 2015 Share Posted November 14, 2015 Wrong code :) setting_dial does not exist. I'll send you a updated instrument for com/nav1. Link to comment Share on other sites More sharing options...
LNRalph Posted November 16, 2015 Share Posted November 16, 2015 Problem was caused by Air Manager not being in touchscreen mode. A thing to check for everyone who has this problem. Solved :) Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.