• 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.

XML Gauges and Schema

As far as I've been able to determine, the only thing that FSX schema can do that FS9 schema cannot is to rotate an arc. Even then, there are techniques one may use in FS9 schema to achieve the same visual result, albeit not so simply and elegantly! :wizard:

I am writing a Tcas in fs9 format since i need custom draw. But the Tcas is combined with a CDI gauge. How can i write a VSI needle in fs9 XMLSchema-instance ? Any samples would be appreciated.
 
Here is one from Ken Mitchell's DC-6 panel, simplified so it is generic. You can ignore the ImageSizes commands; they were used in FS2002.

Code:
<Gauge Name="Vertical Speed Indicator" Version="1.0">
   <Image Name="VERT_SPEED_BACK.bmp" ImageSizes="256,256"/>
   <Element>
      <Position X="0" Y="0"/>
      <Image Name="VERT_SPEED_FACE.bmp" Luminous="Yes" ImageSizes="256,256"/>
   <Element>
      <Position X="128" Y="128"/>
      <Image Name="VERT_SPEED_ND.bmp" Luminous="Yes" PointsTo="West">
         <Axis X="103" Y="6.5"/>
      </Image>
      <Rotate>
         <Value Minimum="-2000" Maximum="2000">(A:Vertical speed,feet per minute)</Value>
         <Nonlinearity>
            <Item Value="-2000" X="230" Y="136"/>
            <Item Value="-1500" X="219" Y="169"/>
            <Item Value="-1000" X="160" Y="220"/>
            <Item Value="-500" X="84" Y="215"/>
            <Item Value="0" X="28" Y="126"/>
            <Item Value="500" X="83" Y="36"/>
            <Item Value="1000" X="160" Y="32"/>
            <Item Value="1500" X="217" Y="84"/>
            <Item Value="2000" X="228" Y="116"/>
         </Nonlinearity>
         <Delay DegreesPerSecond="25"/>
         <Failures>
            <GAUGE_VERTICAL_SPEED Action="Freeze"/>
            <SYSTEM_PITOT_STATIC Action="0"/>
         </Failures>
      </Rotate>
   </Element>
    </Element>
   <Mouse>
      <Tooltip>Vertical Speed (%((A:Vertical speed, feet per minute))%!d! ft/min)</Tooltip>
   </Mouse>
   <copyright>(c)2005 Ken Mitchell [justmitch@charter.net] www.mitchspanelshop.com</copyright>
</Gauge>

Hope this helps,
 
I am writing a Tcas in fs9 format since i need custom draw. But the Tcas is combined with a CDI gauge. How can i write a VSI needle in fs9 XMLSchema-instance ? Any samples would be appreciated.

A couple points of clarification related to XML and TCAS:

- One can write an 'xml TCAS' (specifically, a TCAS not utilizing Arne Bartles traffic radar module) using either FS9 or FSX xml schema. As noted earlier in this thread, most people consider FS9 schema to be less verbose and simpler to use than FSX schema. The xml schemas, so far, are forward but not backward compatible. You can use FS9 schema in the FS9 through P3D v4 sims, but you cannot use FSX schema in the FS9 simulator.

- An xml TCAS requires use of the ITrafficInfo xml variables which are available starting with the FSX simulator's gps module. These variables are maintained in the gps modules of subsequent simulations through P3D v4. There are no ITrafficInfo xml variables associated with the FS9 gps.dll, so for that sim, you must use Bartel's module for a TCAS gauge.

- CustomDraw xml was introduced in the FS9 simulation concurrent with the release of MS's xml Garmin 295 and 500 gps gauges. Those gps gauges contained a moving map, and CustomDraw was the framework to manipulate the layers (terrain, navaids, flight plans, etc) of the map.

- You don't need CustomDraw elements to write an xml TCAS gauge. Early RW TCAS gauges were not superimposed on top of a terrain map; their backgrounds were just black. That can be re-created in xml using ITrafficInfo variables without use of CustomDraw elements. The key to an xml TCAS is the availability of xml ITrafficInfo variables.

Bob
 
Last edited:
A couple points of clarification related to XML and TCAS:

- One can write an 'xml TCAS' (specifically, a TCAS not utilizing Arne Bartles traffic radar module) using either FS9 or FSX xml schema. As noted earlier in this thread, most people consider FS9 schema to be less verbose and simpler to use than FSX schema. The xml schemas, so far, are forward but not backward compatible. You can use FS9 schema in the FS9 through P3D v4 sims, but you cannot use FSX schema in the FS9 simulator.

- An xml TCAS requires use of the ITrafficInfo xml variables which are available starting with the FSX simulator's gps module. These variables are maintained in the gps modules of subsequent simulations through P3D v4. There are no ITrafficInfo xml variables associated with the FS9 gps.dll, so for that sim, you must use Bartel's module for a TCAS gauge.

- CustomDraw xml was introduced in the FS9 simulation concurrent with the release of MS's xml Garmin 295 and 500 gps gauges. Those gps gauges contained a moving map, and CustomDraw was the framework to manipulate the layers (terrain, navaids, flight plans, etc) of the map.

- You don't need CustomDraw elements to write an xml TCAS gauge. Early RW TCAS gauges were not superimposed on top of a terrain map; their backgrounds were just black. That can be re-created in xml using ITrafficInfo variables without use of CustomDraw elements. The key to an xml TCAS is the availability of xml ITrafficInfo variables.

Bob


This was some good info as i learned few more things. I found that Blackbox website has some teaching examples that are in FSX xml scheme. So i was able to write my own custom TCAS.
But i have an issue that i never seen before. If i have a 3D display and a 2D i get a conflict where the update section of the code flickers between screens. So the math is jumping in factors and is no longer accurate. If i only enable 2 screen it perfect.
What is the cause and how can i fix it?
 
Last edited:
Back
Top