• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

C to XML

Bjoern,

as I hope I made sufficiently clear, I didn't want to appear as offensive toward you when refusing to add support for the points you listed. And I apologize if it wasn't so.
What I can do is to check how much work would be required to make defined waypoints reachable from an external gauge/whatever using the SDK, and, if that wouldn't require much effort and is possible (internal CIVA structure is quite complicated) I will consider extending the SDK in that direction, but no promises as my spare time is unfortunately VERY limited.
Also, I find the CIVA quite unintuitive to use, but that's hardly your fault.
This is exactly the point. CIVA tries to implement an instrument which was not very "user friendly" and it has to be so if the goal is to be realistic.
on real aircraft, the pilot not flying was responsible for managing the INS. In MSFS, you're on your own in the flight deck
Here you are right, it could create, in certain phases of the flight, an extra workload a single pilot can hardly handle (in those times there were 3 resources in the cockpit). But I believe that considering:
1) INS should not be used in the initial (post take off and initial climb) and final phases of the flight. Normally, AFAIK, the INS was used up to the IAF. Than redar vectoring took place and INS was no more in charge of "lateral navigation"
2) If the flight has been well planned, you could have up to 7 waypoints to go before the INS requires any manual intervention. This should leave enough time, to the "solo" pilot, enough time to carry out all the other aspects of the flight.
it could be done. At the end, with FS/P3D, at least during cruise, you have almost nothing to do...

Check Tom's readme as he made a mention of the issue in there
Can you please provide me an URL where I can find such readme?

Thank you
Marco
 
To Bjorn,
If I told you that Marco's manual for the CIVA INS is more thorough and explanatory than the real one, would that surprise you?
With the advent of GPS too many have come to rely on it. Here, GPS can only be used as a secondary navigational aid. In other words you "must" carry charts (and know how to use them). Likewise too many simmers put too much reliance on their beloved FMCs. On the PF3 forum we get people saying that PF3 didn't request a descent exactly when their FMC said TOD. ATC have absolutely no idea of your TOD unless you write it as part of your real flightplan. And even then they have 60m of deg leeway.
Marco's CIVA INS models it perfectly with all its querks and failures. If you want to fly a classic jet then you have to think differently. And that's part of the fun of simulating how pilots of their day (my day as still doing it 40 years on!) did their stuff.
Aircraft were not just fitted with INS. They had all the usual NDB/VOR gauges etc. So if you can't use the INS for some reason at least you can navigate that way as well. My updated VC10 panel also has a sextant so if you are daring you can do celestial navigation instead. Now that's a lost art. But surprisingly easy and accurate once you know.
Look how different it is to fly say the Coolsky Dc9 compared with the PMDG 777. It would be totally wrong to equip the DC9 to the 777 Standard.
 
as I hope I made sufficiently clear, I didn't want to appear as offensive toward you when refusing to add support for the points you listed. And I apologize if it wasn't so.

No worries. I've been in this business long enough to know that the developer is king, especially when the product is freeware. Do what you feel is right with the gauge.

What I can do is to check how much work would be required to make defined waypoints reachable from an external gauge/whatever using the SDK, and, if that wouldn't require much effort and is possible (internal CIVA structure is quite complicated) I will consider extending the SDK in that direction, but no promises as my spare time is unfortunately VERY limited.

If the coordiantes for waypoints are stored in a sensible fashion in the gauge (i.e. an L: for latitude and longitude each per waypoint), writing a "plug in" for the CIVA that cycles through the FSX flight plan and auto-fills the INS waypoint list isn't too much of a hindrance. I'd probably try it myself at one point, but I'd have to get to know the inner workings of the gauge first which takes some time. XML is flexible enough to allow these kind of injections.
But as with you, my time is also very limited, hence my request. And you're already familiar with the gauge, which saves some time.

Can you please provide me an URL where I can find such readme?

Okay, it isn't in the readme, but rather in a post made by Tom.
https://translate.google.com/transl...t-in-1662237-teilen/&postID=342781#post342781



To Bjorn,
If I told you that Marco's manual for the CIVA INS is more thorough and explanatory than the real one, would that surprise you?

Claiming that I have read the entire manual would be a lie, but while testing v1.51, I've read enough to make the AP follow INS guidance. The manual is great but that still doesn't change the fact that the device is unintuitive and time-consuming to operate. I suspect that even the Apollo Guidance Computer was better to manage.

With the advent of GPS too many have come to rely on it. Here, GPS can only be used as a secondary navigational aid. In other words you "must" carry charts (and know how to use them). Likewise too many simmers put too much reliance on their beloved FMCs. On the PF3 forum we get people saying that PF3 didn't request a descent exactly when their FMC said TOD. ATC have absolutely no idea of your TOD unless you write it as part of your real flightplan. And even then they have 60m of deg leeway.
Marco's CIVA INS models it perfectly with all its querks and failures. If you want to fly a classic jet then you have to think differently. And that's part of the fun of simulating how pilots of their day (my day as still doing it 40 years on!) did their stuff.
Aircraft were not just fitted with INS. They had all the usual NDB/VOR gauges etc. So if you can't use the INS for some reason at least you can navigate that way as well. My updated VC10 panel also has a sextant so if you are daring you can do celestial navigation instead. Now that's a lost art. But surprisingly easy and accurate once you know.
Look how different it is to fly say the Coolsky Dc9 compared with the PMDG 777. It would be totally wrong to equip the DC9 to the 777 Standard.

I use default flight plans and associated auto-flying capabilties as a means of being pilot non-flying during cruise and for ATC guidance since first officers are hard to come by. Whether the autopilot is fed from an INS or a GPS doesn't matter as long as it allows me to leave FSX alone for the cruise phase to do real life things (cleaning or cooking being a favourite) while sticking to the flight plan (I want to go somewhere and not lurk around the sky till my tanks are empty). So running out of stored waypoints in an INS or deviating from the flight plan due to drift while I'm doing something else and incur the wrath of ATC or the danger of running out of fuel would be a real bummer.
 
Ravamar said:
BTW It's always a pleasure to discuss with you!

My pleasure too Marco!

To Bjorn,
If I told you that Marco's manual for the CIVA INS is more thorough and explanatory than the real one, would that surprise you?

I completely agree. A great source of information.

If the coordiantes for waypoints are stored in a sensible fashion in the gauge (i.e. an L: for latitude and longitude each per waypoint), writing a "plug in" for the CIVA that cycles through the FSX flight plan and auto-fills the INS waypoint list isn't too much of a hindrance

The INS included in Michael's upcoming DC8 can read a complet FSX flight plan and sequence waypoints along the route. Not realistic, but perhaps a forgivable licence aimed to those meeting Bjoern's requeriments.

Tom
 
I'm wondering why he did not ask the question in the CIVA forum @Simufly.com...
Anyway, I had the time to quickly try his 727, merging CIVA in VC and CIVA in 2D, and, at least as far as I've tested it, I must confirm the problem exists :mad:
Don't know why yet...and it'll take me a while to discover it I fear.

Something I don't know, and would help me look in the right direction, is:

- Where 2D gauges and VC gauges "live"? Are they executed within different threads?
- Are 2D gauges alive while VC is displayed and vice versa? Or not?
- If not, which service_id are received by a gauge callback when switching from 2D to VC (and vice versa)?

Marco
 
UPDATE: I made it partially work, just playing with panel.cfg, no changes to the INS code.
For sure, at least with CIVA, you canNOT "declare" the very same gauge twice. I don't know if this is a limitation imposed by the way I coded them or it is valid for any C++ gauge, fact is, with CIVA, you cannot...
Thus, speaking for each INS unit (where 'n' could be '1', '2' or '3'), while for each CDU there are 3 identical gauges available (CDUn, CDUn1 and CDUn2) for MSU only one is available (MSUn). Consequenty if the MSU gets declared more than once (typically twice, 2D and VC) one (the one which came last I guess) will NOT work.
So, to make TR727 panel work in both 2D and VC "simultaneously", I'll at least have to add, for each INS unit, a second "copy" of the MSU gauge into the ins.gau file (not a big problem actually).

Tried this on ground, let's see if it works in the air :) Stay tuned (if interested LOL)

Thanks,
Marco
 
- Where 2D gauges and VC gauges "live"? Are they executed within different threads?
- Are 2D gauges alive while VC is displayed and vice versa? Or not?
- If not, which service_id are received by a gauge callback when switching from 2D to VC (and vice versa)?

As far as I know, VC gauges are always loaded while 2D panel gauges are loaded the first time you access the 2D panel. But after that, both will run in the background. Not sure if each is run in a separate instance, but interactions in one are transmitted to the other and vice versa via EventIDs+SimVars or L: vars.
So an XML gauge running on a 2D panel displays the same information as one running in the VC.



UPDATE: I made it partially work, just playing with panel.cfg, no changes to the INS code.
For sure, at least with CIVA, you canNOT "declare" the very same gauge twice. I don't know if this is a limitation imposed by the way I coded them or it is valid for any C++ gauge, fact is, with CIVA, you cannot...

Could be a C++ thing. The C++ autopilot in the TinMouse2 panel absolutely has to be initialized from the 2D panel before it'll work in the VC.

Thus, speaking for each INS unit (where 'n' could be '1', '2' or '3'), while for each CDU there are 3 identical gauges available (CDUn, CDUn1 and CDUn2) for MSU only one is available (MSUn). Consequenty if the MSU gets declared more than once (typically twice, 2D and VC) one (the one which came last I guess) will NOT work.
So, to make TR727 panel work in both 2D and VC "simultaneously", I'll at least have to add, for each INS unit, a second "copy" of the MSU gauge into the ins.gau file (not a big problem actually).

Tried this on ground, let's see if it works in the air :) Stay tuned (if interested LOL)

Interesting fix. And simple to boot.
 
Interesting fix. And simple to boot
Hmmm...there is something strange going on and I don't know if it is CIVA's fault of something badly defined in the VC...
The problem is that if it is something wrongly defined in the VC I don't know where to look.

Current situation is this: I successfully implanted a dual INS system in TR 727, both 2D ad VC panels, and everything SEEMS to work but it does not :oops:
In VC the rightmost CDU (#2) always shows data coming from CDU #1, but if, for example I move its Data Selector Knob, it does correctly move CDU #2 Knob.
This makes no sense to me...that's why I suspect there is something wrong in the VC definition.

You previously wrote:
It has 3D modeled MSU and CDU elements that are mapped with a gauge poly (which is using the 2D gauge)
I believe there is something wrong with such "mapping", but I don't know what it is and if I can change it or is builtin/encoded somewhere...

So the main question at this point is can I check/modify such "gauge poly mapping" or will I need to email Thomas?

Thank you
Marco
 

The gauge poly is set up to enable two separate instances of the CIVA in the VC (ref. the differing Y coordinates for each MSU and CDU in the panel.cfg), but only one ADEU.

You can look at the gauge polygon layout in the INS cockpit model with ModelConverterX (Material Editor -> $VC02 -> Highlight Selected). Maybe it'll help.


Good luck contacting Thomas. I've sent a mail to the address from his readmes four years ago and never got a reply. He pretty much disappeared from the flightsim scene after his last aircraft model (Me-264, 2013).
Without the cockpit GMax source files, you can't do anything about any gauge polygon mapping.
 
Good luck contacting Thomas. I've sent a mail to the address from his readmes four years ago and never got a reply. He pretty much disappeared from the flightsim scene after his last aircraft model (Me-264, 2013).
Without the cockpit GMax source files, you can't do anything about any gauge polygon mapping.
Thank you very much for saving some of my time! I'll concentrate on CIVA to XML stuff and stop looking at TR panel. It was indeed useful to let me understand if the "either 2D or VC" issue was true or not, and I'm ALMOST sure it's not. Not a waste of time because with FS/P3D you've always something to learn...
You can look at the gauge polygon layout in the INS cockpit model with ModelConverterX (Material Editor -> $VC02 -> Highlight Selected). Maybe it'll help.
Time permitting (at this point it's low priority for me) I'll check this out, once again thank you!

Marco
 
Marco,

Current situation is this: I successfully implanted a dual INS system in TR 727, both 2D ad VC panels, and everything SEEMS to work but it does not :oops:
In VC the rightmost CDU (#2) always shows data coming from CDU #1, but if, for example I move its Data Selector Knob, it does correctly move CDU #2 Knob.
This makes no sense to me...that's why I suspect there is something wrong in the VC definition.

After looking at a video of the 727 in youtube, I see two CDUs are 3D modeled on the VC. However, I guess the 3D polys are dummy only, and when you click on, for instance, a key, you are actually clicking directly on CDUn .gau file lying underneath. And the rotary switches may be controlled by different LVARs, that's the reason they move correctly.

AFAIK, any XML gauge can be included more than once in a panel, either on 2D sections, VC, VC+2D, etc, but only the first one loaded is the instance of the gauge, the other ones are a reference (pointed at) of the same object. I think the same applies to C++ gauges, with the difference that perhaps another instance is forced by passing the fifht parameter in panel's coordinates, something not available to XML gauges.
Just in case this might help you figure out the problem.

Tom
 
AFAIK, any XML gauge can be included more than once in a panel, either on 2D sections, VC, VC+2D, etc, but only the first one loaded is the instance of the gauge, the other ones are a reference (pointed at) of the same object. I think the same applies to C++ gauges, with the difference that perhaps another instance is forced by passing the fifht parameter in panel's coordinates, something not available to XML gauges.
Speaking about C/C++ gauges, which are named as ".gau" but are in fact DLLs, the only thing I'm sure of is that a program (an "EXE", FS in this case) canNOT load the same DLL more than ONCE. So referencing the same (C/C++) [sub]gauge more than once in the same panel.cfg will not work or, at least, will cause troubles, because the code being executed is the same, as are global variables. Probably these limitations are no longer valid with XML (since you wrote: "any XML gauge can be included more than once in a panel" and I trust you) and it would surely be a +1 for XML vs C/C++ gauges. The other BIG PLUS XML gauges have, as far as I've seen, is that the XML file is not kept locked so you can copy it over existing one and just reload the panel/aircraft, this is NOT possible with C++ gauges because you cannot overwrite the binary file (.gau) while is being used. And this saves a LOT of time when you're "experimenting".
 
While a DLL can be loaded only once... not true concerning a gauge. Gauges can be loaded multiple times and even kept separate codewise... I do it all the time.
 
Not without providing proprietary code that I use for my commercial endeavors. Sorry.

I can simply state that it's easily possible.
 
Not without providing proprietary code that I use for my commercial endeavors. Sorry
I wasn't aware of that, as I don't know, within this forum, who's involved with commercial projects and who's "only" a free time, freeware, developer, as I am.
So...sorry for asking! I well understand you're not willing (or permitted) to share the knowledge you own. No problem...even if (but in so advanced saying I'm in trouble with my English) I'd say that you can't state something if you cant then prove it. But I'm not willing to appear as offensive or polemic! I 100% understand and accept that!

I can simply state that it's easily possible
Any magician would tell you what's he's doing is "easy"! :)

Thank you,
Marco
 
Marco,
Ed (Warp) is right. I think it is usual to confuse a "gauge file" with a "gauge object".

A gauge file (.gau, .dll) may contain one to many gauge objects (GAUGEHDR structures) and is loaded only once by panel routines. On the other hand, a gauge object may be referenced many times in panel.cfg, so it is possible to have multiple instances of the same object running in the same session.

The only caution in this case is not to use globals, as they would be updated by each one of the object's instances.

I don't have my laptop with me now but later on I could give you some basic examples.

Tom
 
The only caution in this case is not to use globals
Your statement made me think why I could not run multiple instances of the same gauge object.
I'm NOT using gauge object global variables. I have some which are global to the whole .gau file but their (write) access is limited and serialized so no "conflicts" should occur.

Anyway I took the CIVA CDU as an example and tried to see what was going on and did some experiments. It came out that all displays were blank in any "secondary" instance. Only the one coming first (panel.cfg) was showing the correct values.

Now, as far as I can tell, the problem was not due to (gauge or gauge object) global variables, but instead it was due to variables which were declared as static within (locally I mean) to an "element" callback routine. As soon as I defined them as non-static, second instance appeared as working correctly (I need further testing to make 100% sure actually).

Please don't ask me why I originally declared them as static :), that is part of original code written in 2003 and I forgot the reason behind this. Or, better, I may have thought that each gauge object was being executed in a separate thread (which I [now] believe it's not the case). In case of one gauge object = one thread they would have worked correctly, otherwise not, because they would end up being SHARED by different instances, actually "promoting" static variables to "global" and thus causing side effects (as you stated).

Thank you!
Marco
 
Marco, I do not know if it would be useful for your purposes, but are you familiar at all with the "fifth parameter" in a gauge's entry in the panel.cfg file?

It is extremely useful for many different purposes. Among other things it can identify a unique instance of a specific gauge. Knowing this will allow the programmer to provide different branches in their logic based on the fifth parameter.

For example, in this gauge entry I'm using the fifth parameter to pass a lot of information to the sound module, including a path to where the sound files (.wav) are located, as well as the highest numbered SNDnn.wav file used. That last value is used to create a dynamic array of the exact size required.
Code:
gauge01=Milviz_Sound!FBGS_XMLSound,  0,0,1,1,SimObjects\\Airplanes\\Cessna T-50 Bobcat - Milviz\\panel\\Milviz_Sounds#58
 
Hello Bill,

yes, I'm familiar with the "fifth parameter", I'm using it in the "core" CIVA gauge to get the name of the file where INS state will be saved to/restored from, but I can't rely on it too much because I'm releasing a set of gauges to be "implantable" as easily as possible, into panel.cfgs, by end users, so I can' ask too much...I mean I cannot make it too difficult.
But your example is nevertheless helpful to me because (I admit I did not try it by myself :oops:) I see it is possible to pass parameter(s) including blanks/spaces, so, the fifth parameter is actually a string which could be parsed and retrieve an almost infinite number of parameters from it, something like "/A /B /C", whatever they mean (to the parsing side).

Thank you,
Marco
 
Back
Top