Air Manager G1000 needed!

Reading and altering a variable is a pretty common way of instrument interaction in AIr Manager if an event is not available or not appropriate such as toggle events in some cases. Just a few small instrument coding tips if i may that will help optimise the code for other instruments that may need this approach.

1 - Its always a good idea to do an initial declaration of variables to be used at the head of the logic.lua.

2 - There is no need to return VNAVState from the subscribe callback function. You are already setting the VNAVState variable on the line above and subscribe callbacks donā€™t return data they collect and action it.

3 - There is no need to use an ifā€¦else to check the state of a variable that can only ever be in one of 2 states 0 or 1. You simply xor the current value with 1 which will invert it. This really shortens the button callback to just 2 lines.

Just trying to help now that Air Manager has better MSFS support after the SDK was improved.

For those that donā€™t know. The Air Manager G1000 now works without needing Mobiflight although I do note that it needs the vnav button implementation. I have my own custom G1000 with a matching audio panel that works with Xplane and MSFS and has black screen on shut down, key lighting etc implemented with Mobiflight nowhere to be seen.

Thanks for the tips and explanation, good sir. All help when learning something from scratch is appreciated.

No worries at all. Iā€™m always happy to help folks help themselves especially when they are eager to get stuck into it for themselves. Its one of the reasons I produced the API tutorial videos a while back now. Keep up the good work and it will soon become second nature. We all learn by making mistakes. Flying the sim has certainly re-inforced that for me. :slight_smile:

I currently set mine up manually and donā€™t really struggle with it but itā€™s annoying to have to do it each time. I run dual 24ā€ touch screens so I can have pretty much a full sized panel for all of my aircraft. Because of this the instruments are placed in as close to their real world locations as possible and this means my G1000 or GPS overlays are not in the same location for every aircraft. Does fancy zones allow different profiles and if not how do you think it would handle many zones that would be overlapping each other.

You can save 10 profiles that are hotkey accessible (Ctrl+Start+Alt + [1-0]). You can have overlapping zones.

Since I have 15.6" monitors, I have to manage my space more effeciently than. you with larger monitors. . Iā€™ll always have my G1000 in the exact same location (1 on each screen) for any panel that uses it. As in my image below, Iā€™ll have both the G1000 zones on a single profile. I quickly call it up with Ctrl+Start+Alt+1.

Ditto for my CJ4 panel, for example. I have all the zones for both screens defined in 1 profile. It makes it a little messy looking in setup, but it works.

Of course, youā€™re limited to 10 layouts. There may be other options out there that offer more options. Iā€™ll start looking into it if I find myself needed it. But for now, this works for me.

Thanks I might give it a try. 10 is a decent number considering that I hope some aircraft can use the same profile. It would obviously be better if the allowable profile count was larger but it might help at least. Iā€™ll have a play.

Just a little update. Ran into problems with the touch monitor. It wouldnā€™t keep the connection to the computer, couldnā€™t determine the cause, so I returned it. Got a WIMAXIT and itā€™s working well. Left it on and connected for two days straight. Now Iā€™m waiting for longer USB-C cables, 3ft donā€™t cut it. Working on resizing the AM panels.

1 Like

Some very nice upgrades in the latest Nxi 0.5.0 update. Traffic, ils capture, nexrad, map de clutter etc etc

Indeed. Itā€™s now at a stage that pretty much matches the former 0.3x version in terms of extra features. A couple of minor QoL ones (like ability to switch frm 8.33 to 25 kHz on comm radios, a few MFD pages) are not there yet, but those arenā€™t that important. I would say previously, it was usable, but not for everyone. Now though, I think itā€™s at a stage where it can be useful for anyone at all.

I had to update my G1000 bezel for it though. Due to an overhaul of the AP, they made a couple of changes that broke some functions. Thereā€™s a new event to toggle FLC mode, so the older ones no longer work. And they added an event for VNAV now, so the functionality I had previously added to read / write the LVAR is no longer required. Thatā€™s kind of nice, actually.

Didnā€™t need to change my FLC. It seems I was already using the toggle event. Iā€™m in 2 minds about swapping the up/dn buttons over though as Iā€™m sure it will be corrected in future. If it gets fixed in the next update Iā€™ll probably leave it as it is and remember that currently nose up increases speed rather than decreases like it should.

New command as of yesterdayā€™s 0.5.0ā€¦

H:AS1000_VNAV_TOGGLE

I donā€™t use Mobiflight for the G1000 any more. it works with native commands now. I donā€™t know what the Mobiflight event is.

Good stuff. Iā€™ve never made custom Mobiflight events before, so didnā€™t know how it was done. Glag to hear it works.

Hi, thanks for this. Just wondering if anyone has done a video on setting up fancy zones with panels?

Iā€™m just setting up my home sim which pretty much replicates yours. I want to setup my C172 the same way as you have pictured but just not sure what instrument/panel/zone config you have and how to make it as efficient as possible.

  • I can see in your picture you have your two 15.6" screes. Are each of the images on those screens one AM panel or is it made up of multiple AM panels?

  • Are you able to post a screenshot of your zone config for the fancy zones? It would give a good insight into how you have it setup.

  • Are the C172 panels you have there available for download as full panels or will I need to ā€˜arrangeā€™ them myself?

  • Do you find yourself using the Xbox controller much now you have TrackIR? Do you recommend the Xbox controller as a good option for camera control? If so, how to you have it fixed to your yoke?

Sorry for all the questions, Iā€™ve spent hours reading all these posts but havenā€™t found a guide dedicated to setting all this up from scratch. Iā€™m happy to fumble my way through it though.

Thank you for everything you contribute to this community, itā€™s amazing.

Cheers.

Hi Crunch, you didnā€™t happen to share your updated photoshopped version of this audio panel somewhere did you? Looking for one that matches the G1000 bezels you created.

Cheers.

Each screen is a separate panel. You canā€™t really span a single panel across multiple screens.

I tried. Canā€™t really take screen shots or video of the Fancy Zones layout. Sorry.

I donā€™t have panels available for download. I just share my instruments. You arrange them as you see fit and whatever works best for you. My backgrounds in most cases are just a 1920x1080 coloured background I made in Photoshop with transparency cutouts for the locations of the popout screens. In the case of the C182 image above you replied to, I added the white text on the background as it would be in the planeā€™s cockpit just for looks. Thereā€™s really nothing that goes into those backgrounds.

My Xbox controller is attached to my yoke using velcro tape. That way it can easily be removed if I want to use it for another game. I use the Xbox controller less frequently now with TrackIR, but I still use it for cameras, and thereā€™s nothing that could replace it for drone control.

I never shared it as part of my own instrument library because I didnā€™t make it. That audio panel is @FLRob27ā€™s work.

That said, he and I have started a collaborative GitHub together to work on stuff. The audio panel is available here:

2 Likes

Thank you, amazing. Cheers.

I tried different G1000 and G1000Nix panels. all the buttons work perfectly. but I donā€™t see this PFD and MFD. What am I doing wrong? the AM4 version is uncensored of course

Can you Help me :wink: )

You have to pop the screens out of the sim and move them into your panels.