- Messages
- 53
- Country

I am working on building my Gauge programming repertoire and I am beginning to move into advanced logic. With my software engineering background I have a pretty thorough understanding of OOP (albeit mostly in C#) and I have worked with SimConnect from external modules. My day job is flying C-130s for the Coast Guard so I want to combine this knowledge to create some better simulations.
The project I am currently working on is gutting the CaptainSim C-130 and bringing it up to snuff. Unfortunately the polygons in the cockpit limit me from putting in some of our updated avionics but I am adapting. I have successfully used the Cabin Comfort example to input custom variables from outside the sim but it seemed like a pretty bulky solution. That all being said I'll start with my question...
To interact with L:Vars in XML gauges do I need to instantiate the Aircraft class and all the other stuff in the Cabin Comfort example or can I define an L:Var in an XML gauge (A CDI Deflection for example) and then use a Logic module to drive it. That brings me to my next question, I have used the GDI+ example and understand it, as well as the recent C++ tutorial in here, however I was wondering if I can create a non-visible gauge that drives the systems logic for the aircraft (Do I just use the Transparent decleration?)
My final question is, if I can identify the name of the L:Vars (basically the ones in the ModelDef for things like electrical switches) in the CaptainSim C-130, can I remove all of the captainsim guages and use my own logic driven off those switch positions?
Thanks for all the help! I am constantly learning from all of you on here and truly think this place is a great resource.
-Matt
The project I am currently working on is gutting the CaptainSim C-130 and bringing it up to snuff. Unfortunately the polygons in the cockpit limit me from putting in some of our updated avionics but I am adapting. I have successfully used the Cabin Comfort example to input custom variables from outside the sim but it seemed like a pretty bulky solution. That all being said I'll start with my question...
To interact with L:Vars in XML gauges do I need to instantiate the Aircraft class and all the other stuff in the Cabin Comfort example or can I define an L:Var in an XML gauge (A CDI Deflection for example) and then use a Logic module to drive it. That brings me to my next question, I have used the GDI+ example and understand it, as well as the recent C++ tutorial in here, however I was wondering if I can create a non-visible gauge that drives the systems logic for the aircraft (Do I just use the Transparent decleration?)
My final question is, if I can identify the name of the L:Vars (basically the ones in the ModelDef for things like electrical switches) in the CaptainSim C-130, can I remove all of the captainsim guages and use my own logic driven off those switch positions?
Thanks for all the help! I am constantly learning from all of you on here and truly think this place is a great resource.
-Matt


