norry
Almost Aviator
Posts: 9
|
Post by norry on Feb 6, 2016 16:40:00 GMT
Hello Mark, first a huge thank you for all the information you have put out there over the past few years. I have built 3 panels now using your techniques, and have had 100% success with the first two which are 1. a general fsx housekeeping panel and 2. a generic autopilot panel. A couple of days ago I installed my latest effort, which is the Garmin nav panel, based very much on your design. except that I opted to use the Dual rotary controllers. My favourite aircraft is the Beechcraft Turbine Duke in which I have installed the RealityXP Garmin 530, and here is the problem, no matter which Linda library I use (including the Twotter extended library)I just cannot get any navigation button or rotary control to work, the only thing that I have been able to get a response from is the left dual controllers that control the Radio. I know it must be possible to make this work because in your youtube video you specifically mention the RealityXp unit. I have no problem mapping the Microsoft default Garmin, but I am really keen to get the RealityXp working. If necessary I would be up for a bit of cutting and pasting but I am afraid my programming skills are zero. Is there anything that springs to mind that I could try?
All the best
|
|
|
Post by MarkH on Feb 6, 2016 17:43:23 GMT
You will be able to get it to work, it will likely just take a bit of fiddling. You will probably know that the only way to automate the RXP GPS is to send it keystrokes. LINDA comes with a Reality-XP library to do this but it doesn't work properly in my experience. I have modified it to work for me. You will need two files - the modified library and the corresponding rxpgns.ini file, which you will find (usually) at C:\ProgramData\Reality XP\Common\Settings\rxpgns.ini. I have attached my files here. To use my files, copy the rxpgs.ini to your RXP settings folder (see above). Then copy the Lua file to fsx\modules\linda\libs\. I suggest you back up both original files first. (You can rename the library file lib-someothername.lua). It is possible (likely, even) that some of these keystrokes are used for other things. In that case you will need to change the duplicates either here or wherever you have mapped them for the other purposes. If you don't, the GPS will work but other things will happen too! Let me know if that works. And show us some pics of your GPS panel Attachments:RXPGNS.INI (5.62 KB)
lib-realityxp.lua (10.95 KB)
|
|
norry
Almost Aviator
Posts: 9
|
Post by norry on Feb 6, 2016 18:05:53 GMT
Many thanks for your super quick response Mark, I have got people coming round tonight so I will get right on to this solution sometime over the weekend. I will let you know how I get on and if I can figure out how, I will post a picture. Meanwhile have a great weekend.
|
|
norry
Almost Aviator
Posts: 9
|
Post by norry on Feb 9, 2016 17:22:11 GMT
OK Mark using your suggested solution, I have now got my Garmin panel working 99% good, the only button that I was not able to connect, was the vnav facility but that was because it was not offered as an option in the Linda library. It might be of interest to anyone reading this in future but in order to get the buttons working after I had mapped them in Linda, I had to change the state of the cockpit Garmin, i.e if I was in Virtual cockpit, I had to bring up the 2D Garmin, and vice versa, if I had the the 2D showing I had to revert to the VC to get the button working. Another little trap I fell into was that in my efforts to get this thing working, I had mapped buttons into my Beechcraft Duke, I forgot all about these so that when I finally mapped the whole panel into the Linda Default aircraft, the conflicting buttons did not work, it took me a while to twig this but when I did, I deleted the conflicts and hurrah! it all works.
Thanks Again Mark.
I tried attaching a few pics of my panels and setup but they were too large, I will look into trying to reduce the size and send them later.
|
|
|
Post by MarkH on Feb 9, 2016 18:34:25 GMT
OK Mark using your suggested solution, I have now got my Garmin panel working 99% good, the only button that I was not able to connect, was the vnav facility but that was because it was not offered as an option in the Linda library. It might be of interest to anyone reading this in future but in order to get the buttons working after I had mapped them in Linda, I had to change the state of the cockpit Garmin, i.e if I was in Virtual cockpit, I had to bring up the 2D Garmin, and vice versa, if I had the the 2D showing I had to revert to the VC to get the button working. Another little trap I fell into was that in my efforts to get this thing working, I had mapped buttons into my Beechcraft Duke, I forgot all about these so that when I finally mapped the whole panel into the Linda Default aircraft, the conflicting buttons did not work, it took me a while to twig this but when I did, I deleted the conflicts and hurrah! it all works. Glad to hear you are having success! The VNAV button needs the RXP_530_NAV() function. I am not quite sure what you are describing with the buttons not working and swapping between the VC and 2D panels. I think there is an option in the Garmin setup program (which should be in your Start menu somewhere) that will allow it to respond to keystrokes when the window doesn't have the focus. Maybe this is what you are finding? And yes, the point about mapping everything to a specific aircraft and then switching to another one - aaargh.
|
|
ace9
Almost Aviator
Posts: 5
|
Post by ace9 on Mar 6, 2019 14:03:17 GMT
Hello Mark, thanks for your help on Avsim - I am getting in to a bit of a pickle and thought it best to bring my issue here being relevant to this thread. I have read the posts it makes sense, however it appears the 530GNS V2 does things differently. I think the RXPGNS.INI has been renamed and revamped (1)RealityXP.GNS.ini and it resides in the (Win 10) Users\name\Documents\Reality XP\GNS Simulation\FltSim - folder Confusingly, each Aircraft folder also has an ini file named (2)RealityXP.GNS.ini - Albeit the content is obviously different. e.g. Prepar3Dv4-Add-ons\Aircraft\Cessna C172\Content\SimObjects\Airplanes\C172 I began to set up the (1)RealityXP.GNS.ini using the key combinations from your RXPGNS.ini and turned to Linda 3.0.9 to map the keys and it doesn't work even with your Linda RXP Lua Lib file, I even tried to assign Shift + Ctr + T by Recording Keypresses but Linda was having none of it... Turns out that if the RealityXP.GNS.ini has an entry (Shift + Ctr + T) Linda will not play.. By any chance, can you help solve this please, because its well over my paygrade... Many Thanks Rog PS info... In the (1)RealityXP.GNS.ini I have set "ENT_1 = CTRL+SHIFT+T" and in Linda assign button 8 to the downloaded "lib-realityxp.lua" file - RXP 530 ENT. which appears to be: - function RXP_530_ENT () ipc.keypress(84, 11) end In the Sim, start the GNS and try to use button 8 to move past the first screen, fails... however if I press CTRL+SHIFT+T on the keyboard, the GNS moves on to the next screen without issue.
|
|
|
Post by MarkH on Mar 6, 2019 18:02:58 GMT
By any chance, can you help solve this please, because its well over my paygrade... Yes, I went through all this recently and found some anomalies. I will go and look at exactly what I have now, since it's working, and will report back here.
|
|
ace9
Almost Aviator
Posts: 5
|
Post by ace9 on Mar 6, 2019 18:06:32 GMT
Thanks Mark..
|
|
|
Post by MarkH on Mar 6, 2019 19:10:51 GMT
Okay, this will not be very aesthetic but I will just attach the two files (lib-realityxp.lua and RealityXP.GNS.ini) I am using using successfully now. Unfortunately I did not update any of the comments so, so they will probably lie to you. But you can compare the two files to see which keystrokes I am using. This all works and I think I only had a problem with the NAV Ident, which they said was a bug (and so may have been fixed). It may help to know that you can enable 'Use Simulator GPS Commands' and these will be active alongside the keystrokes. I did this and then used the standard FSX command (in the appropriate LINDA library) _GPS_ACTIVATE_BUTTON to toggle the NAV Ident. Hope this helps (P.S. I'd probably recommend using the 'Use Simulator GPS Commands' option across the board. I just stuck with keystrokes as I already had it set up that way.)
|
|
ace9
Almost Aviator
Posts: 5
|
Post by ace9 on Mar 6, 2019 19:50:08 GMT
Hey Mark, many thanks for these nuggets of Gold... I have used the standard FS keys just to make sure things are working.... and they did But having gone to all this trouble I will see it through just for the experience... first time building an FS panel and I am really enjoying the experience. I am limited with space, so my panels are going to be made accordingly.. One day though, I intend to build something similar to yours... But what, Spitfire Mk2b is a must, but from there I struggle to make a decision.... DC3, PA28......... maybe a different cockpit in each corner of the room Happy days Mark, your help is very much appreciated. Rog
|
|
|
Post by MarkH on Mar 6, 2019 21:22:46 GMT
Spitfire Mk2b is a must, but from there I struggle to make a decision.... DC3, PA28......... Yes, I am realising that my own cockpit build is really an extended prototyping exercise, as the Twin Otter Extended isn't a very deep simulation. So one day I will (maybe) start again, with a more thoughtful choice of aircraft. I hope it won't be an airliner, although that's where the big investment seems to go. It could well be an A2A aircraft, although to date my only experience of A2A is the Accusim Piper Cub! Anyway, it sounds like you may be sorted now.
|
|
ace9
Almost Aviator
Posts: 5
|
Post by ace9 on Mar 7, 2019 10:32:24 GMT
I have the A2A piper cub, its a lovely model, the A2A Spit is awesome, if your not up and away in approx 10 mins she overheats just like the real thing with steam belching out the engine cover, rudder pedals are almost essential on take off due to the torque. The Piper Cherokee is superb, I highly recommend all A2A products, its all I really fly.. What cock pit to build The Ent and Msg buttons seem to work in Linda, I am looking through the new files, and the Lua file is behaving badly, I have to go out for a while but here are 2 error I will mention first. 1) I set RXP 530 Contrast Dec to decrease the contrast, and the GNS flips between Com and Vloc ? (the new ini file does not list this function, if function is the right phrase?) 2) I set RXP 530 POW and nothing happens, even if I use the keyboard control for PWR_PUSH_1 = CTRL+SHIFT+U It is worth mentioning that I have cleared my P3D control lists so there can be no conflicts, also a clean install of Linda 3.0.9 - FSUIPC 5... What I have noticed is the function or control names are not the same in the new ini file.. should they not be the same? Forgive me , because I am no expert (X is the unknown factor and a spurt is a drip under pressure ) I am on a steep learning curve. For example the old ini file lists function or control name 530_POW whereas this is missing from the new ini file, perhaps replaced with PWR_PUSH_1 Should they not be the same, please can you point out what I am missing here... Have a great day and many thanks again...
|
|
|
Post by MarkH on Mar 7, 2019 13:47:27 GMT
1) I set RXP 530 Contrast Dec to decrease the contrast, and the GNS flips between Com and Vloc ? (the new ini file does not list this function, if function is the right phrase?) 2) I set RXP 530 POW and nothing happens, even if I use the keyboard control for PWR_PUSH_1 = CTRL+SHIFT+U ... What I have noticed is the function or control names are not the same in the new ini file.. Should they not be the same, please can you point out what I am missing here... I don't use the contrast functions, so maybe they didn't get updated. A lot seems to have changed between the RXP v1 and v2 products so yes, the controls names maybe all changed. The power button didn't work i nthe initial release, although someone told me they updated that and it now works. The upshot is, you may need to tweak some of the functions in the Lua code to send the right keystrokes listed in the ini file, but the core GPS functions should all work.
|
|
ace9
Almost Aviator
Posts: 5
|
Post by ace9 on Mar 7, 2019 16:18:44 GMT
I'm on it like a tramp on a kipper, and learning an awful lot.. This is great fun, inspired because I watched one of your you tube videos.... Time to learn about Lua and functions... Thanks for you help Mark..
|
|
|
Post by PapaLima on Apr 9, 2020 10:24:56 GMT
Hi all,
Interesting thread !!
I did not catch the hardware used to handle the GPS buttons you have.
Is it Arduino based or IOcard like OpenCockpit ones ?
Maybe a joystick card to be seen by LINDA ?
Thanks
|
|