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

standalone ADI xml

Messages
78
Hello,
I want this ADI to be independent from electrics and avionics, so that I can integrate it in a VC. What has to be changed in the xml?

<Image Name="ADI_Bkg.bmp"/>

<Element>
<Position X="12" Y="19"/>
<Image Name="ADI_lum.bmp" Luminous="Yes"/>
</Element>


<Element>
<Position X="0" Y="0"/>
<MaskImage Name="ADI_Mask.bmp">
<Axis X="130" Y="125"/>
</MaskImage>
<Image Name="ADI_ladder.bmp" Luminous="Yes">
<Axis X="86" Y="182.5"/>
</Image>
<Shift>
<Value Minimum="-40" Maximum="40">(L:VG1_PITCH,number) 180 * pi /</Value>
<Nonlinearity>
<Item Value="-40" X="0" Y="96"/>
<Item Value="-30" X="0" Y="80"/>
<Item Value="-20" X="0" Y="64"/>
<Item Value="-15" X="0" Y="48"/>
<Item Value="-10" X="0" Y="32"/>
<Item Value="-5" X="0" Y="16"/>
<Item Value="-2.5" X="0" Y="8"/>
<Item Value="0" X="0" Y="0"/>
<Item Value="2.5" X="0" Y="-8"/>
<Item Value="5" X="0" Y="-16"/>
<Item Value="10" X="0" Y="-32"/>
<Item Value="15" X="0" Y="-48"/>
<Item Value="20" X="0" Y="-64"/>
<Item Value="30" X="0" Y="-80"/>
<Item Value="40" X="0" Y="-96"/>
</Nonlinearity>
</Shift>
<Rotate>
<Value>(L:VG1_BANK,number)</Value>
</Rotate>
</Element>

<Element>
<Position X="0" Y="0"/>
<Image Name="ADI_Alpha.bmp" Alpha="Yes"/>
</Element>

<Element>
<Position X="61" Y="121"/>
<Image Name="ADI_AC_Icon.bmp" Luminous="Yes"/>
</Element>

<Element>
<Position X="130" Y="125"/>
<Image Name="ADI_ROLLPOINTER.bmp" Luminous="Yes">
<Axis X="9" Y="80"/>
</Image>
<Rotate>
<Value Minimum="-1.57" Maximum="1.57">(L:VG1_BANK,number)</Value>
</Rotate>
</Element>

<Element>
<Position X="52" Y="39"/>
<Select>
<Value>(L:VG1,bool) (L:ADI_TEST, bool) 1 == or </Value>
<Failures>
<SYSTEM_ELECTRICAL_PANELS Action="1"/>
<SYSTEM_ELECTRICAL_AVIONICS Action="1"/>
</Failures>
<Case Value="0">
</Case>
<Case Value="1">
<Image Name="ADI_FLAG_ATT.bmp" Luminous="Yes">
</Image>
</Case>
</Select>
</Element>

<Element>
<Position X="179" Y="41"/>
<Select>
<Value>(L:ADI_TEST, bool) 1 == (A:Autopilot flight director active, bool) ! or (L:VG1,bool) or</Value>
<Failures>
<SYSTEM_ELECTRICAL_PANELS Action="1"/>
<SYSTEM_ELECTRICAL_AVIONICS Action="1"/>
</Failures>
<Case Value="0">
</Case>
<Case Value="1">
<Image Name="ADI_FLAG_FD.bmp" Luminous="Yes">
</Image>
</Case>
</Select>
</Element>

<Element>
<Position X="220" Y="121"/>
<Image Name="ADI_GS_POINTER.bmp" Luminous="Yes"/>
<Shift>
<Value Minimum="-128" Maximum="128">(A:NAV1 GSI, number)</Value>
<Failures>
<SYSTEM_ELECTRICAL_PANELS Action="0"/>
<SYSTEM_ELECTRICAL_AVIONICS Action="0"/>
<GAUGE_NAVIGATION_VOR1 Action="0"/>
</Failures>
<Nonlinearity>
<Item Value="-128" X="220" Y="86"/>
<Item Value="0" X="220" Y="121"/>
<Item Value="128" X="220" Y="154"/>
</Nonlinearity>
<Delay PixelsPerSecond="50"/>
</Shift>
</Element>

<Element>
<Position X="213" Y="94"/>
<Select>
<Value>(L:ADI_TEST, bool) 1 == (A:NAV1 GS FLAG,bool) ! or</Value>
<Failures>
<SYSTEM_ELECTRICAL_PANELS Action="1"/>
<SYSTEM_ELECTRICAL_AVIONICS Action="1"/>
</Failures>
<Case Value="0">
</Case>
<Case Value="1">
<Image Name="ADI_FLAG_GS.bmp" Luminous="Yes">
</Image>
</Case>
</Select>
</Element>

<Element>
<Position X="122" Y="176"/>
<Image Name="ADI_LOC_POINTER.bmp" Luminous="Yes"/>
<Shift>
<Value Minimum="-128" Maximum="128">(A:HSI CDI needle,number)</Value>
<Failures>
<SYSTEM_ELECTRICAL_PANELS Action="0"/>
<SYSTEM_ELECTRICAL_AVIONICS Action="0"/>
<GAUGE_NAVIGATION_VOR1 Action="0"/>
</Failures>
<Nonlinearity>
<Item Value="-128" X="94" Y="176"/>
<Item Value="0" X="122" Y="176"/>
<Item Value="128" X="150" Y="176"/>
</Nonlinearity>
<Delay PixelsPerSecond="50"/>
</Shift>
</Element>

<Element>
<Position X="135" Y="190"/>
<Select>
<Value>(L:ADI_TEST, bool) 1 == (A:HSI CDI needle valid,bool) ! or</Value>
<Failures>
<SYSTEM_ELECTRICAL_PANELS Action="1"/>
<SYSTEM_ELECTRICAL_AVIONICS Action="1"/>
</Failures>
<Case Value="0">
</Case>
<Case Value="1">
<Image Name="ADI_FLAG_LOC.bmp" Luminous="Yes">
</Image>
</Case>
</Select>
</Element>

<Element>
<Position X="58" Y="201"/>
<Select>
<Value>(L:ADI_TEST, bool) 1 ==</Value>
<Failures>
<SYSTEM_ELECTRICAL_PANELS Action="1"/>
<SYSTEM_ELECTRICAL_AVIONICS Action="1"/>
</Failures>
<Case Value="0">
</Case>
<Case Value="1">
<Image Name="ADI_FLAG_RT.bmp" Luminous="Yes">
</Image>
</Case>
</Select>
</Element>

<Element>
<Position X="28" Y="117"/>
<Image Name="ADI_SPD.bmp" Luminous="Yes"/>
<Shift>
<Value Minimum="-20" Maximum="20">(A:Airspeed select indicated or true,knots) (A:Autopilot airspeed hold var, knots) -</Value>
<Failures>
<SYSTEM_ELECTRICAL_PANELS Action="0"/>
<SYSTEM_ELECTRICAL_AVIONICS Action="0"/>
</Failures>
<Nonlinearity>
<Item Value="-20" X="28" Y="141"/>
<Item Value="0" X="28" Y="117"/>
<Item Value="20" X="28" Y="91"/>
</Nonlinearity>
<Delay PixelsPerSecond="50"/>
</Shift>
</Element>

<Element>
<Position X="24" Y="123"/>
<Select>
<Value>(L:ADI_TEST, bool) 1 == (A:PARTIAL PANEL AIRSPEED,enum) 0 != or</Value>
<Failures>
<SYSTEM_ELECTRICAL_PANELS Action="1"/>
<SYSTEM_ELECTRICAL_AVIONICS Action="1"/>
</Failures>
<Case Value="0">
</Case>
<Case Value="1">
<Image Name="ADI_FLAG_SPD.bmp" Luminous="Yes">
</Image>
</Case>
</Select>
</Element>

<Element>
<Position X="233" Y="26"/>
<Select>
<Value>
(A:RADIO HEIGHT, feet) (A:DECISION HEIGHT, number) &lt;
(L:ADI_TEST, bool) 1 == or
</Value>
<Failures>
<SYSTEM_ELECTRICAL_PANELS Action="0"/>
<SYSTEM_ELECTRICAL_AVIONICS Action="0"/>
</Failures>
<Case Value="0">
</Case>
<Case Value="1">
<Image Name="ADI_DH.bmp" Bright="Yes">
</Image>
</Case>
</Select>
</Element>

<Element>
<Image Name="ADI_TB.bmp" Luminous="Yes"/>
<Shift>
<Value Minimum="-1" Maximum="1">(A:Turn coordinator ball,position)</Value>
<Nonlinearity>
<Item Value="-1" X="105" Y="235"/>
<Item Value="0" X="126" Y="238"/>
<Item Value="1" X="148" Y="236"/>
</Nonlinearity>
<Delay PixelsPerSecond="20"/>
<Failures>
<GAUGE_TURN_COORDINATOR Action="Freeze"/>
</Failures>
</Shift>
</Element>

<Element>
<Position X="123" Y="234"/>
<Image Name="ADI_TCB.bmp" Luminous="Yes"/>
</Element>

<Element>
<Position X="88" Y="205"/>
<MaskImage Name="ADI_TR_Mask.bmp"/>
<Image Name="ADI_TR.bmp" Luminous="Yes">
</Image>
<Shift>
<Value Minimum="-1.3" Maximum="1.3">(A:Delta heading rate,rpm)</Value>
<Nonlinearity>
<Item Value="-1.3" X="86" Y="209"/>
<Item Value="-0.5" X="110" Y="209"/>
<Item Value="0" X="125" Y="209"/>
<Item Value="0.5" X="141" Y="209"/>
<Item Value="1.3" X="167" Y="209"/>
</Nonlinearity>
<Delay DegreesPerSecond="180"/>
<Failures>
<GAUGE_TURN_COORDINATOR Action="Freeze"/>
<SYSTEM_ELECTRICAL_PANELS Action="0"/>
</Failures>
</Shift>
</Element>

<Element>
<Position X="0" Y="0"/>
<MaskImage Name="ADI_FD_Mask.bmp"/>
<Image Name="ADI_FD_LAT.bmp" Luminous="Yes">
</Image>
<Shift>
<Value Minimum="-50" Maximum="25">(A:Autopilot flight director active, bool) if{ (L:VG1_BANK,number) 180 * pi / (A:Autopilot flight director BANK, degrees) - -25 max } els{ -50 }</Value>
<Failures>
<SYSTEM_ELECTRICAL_PANELS Action="-50"/>
<SYSTEM_ELECTRICAL_AVIONICS Action="-50"/>
</Failures>
<Nonlinearity>
<Item Value="-50" X="29" Y="22"/>
<Item Value="-25" X="79" Y="22"/>
<Item Value="0" X="129" Y="22"/>
<Item Value="25" X="179" Y="22"/>
</Nonlinearity>
<Delay PixelsPerSecond="50"/>
</Shift>
</Element>

<Element>
<Position X="0" Y="0"/>
<MaskImage Name="ADI_FD_Mask.bmp"/>
<Image Name="ADI_FD_VERT.bmp" Luminous="Yes">
</Image>
<Shift>
<Value Minimum="-25" Maximum="50">(A:Autopilot flight director active, bool) if{ (A:Autopilot flight director pitch, degrees) (L:VG1_PITCH,number) 180 * pi / - 25 min } els{ 50 }</Value>
<Failures>
<SYSTEM_ELECTRICAL_PANELS Action="50"/>
<SYSTEM_ELECTRICAL_AVIONICS Action="50"/>
</Failures>
<Nonlinearity>
<Item Value="-25" X="44" Y="75"/>
<Item Value="0" X="44" Y="125"/>
<Item Value="25" X="44" Y="175"/>
<Item Value="50" X="44" Y="15"/>
</Nonlinearity>
<Delay PixelsPerSecond="50"/>
</Shift>
</Element>


<Mouse>
<Area Left="46" Right="215" Top="50" Bottom="170">
<Tooltip ID="TOOLTIPTEXT_ATTITUDE_INDICATOR_BANK_PITCH"/>
</Area>

<Area Left="4" Right="40" Top="209" Bottom="240">
<Tooltip>Press To Test</Tooltip>
<Cursor Type="Hand"/>
<Click Kind="LeftSingle+Leave">
(M:Event) 'LeftSingle' scmp 0 == if{ 1 (&gt;L:ADI_TEST,bool) }
(M:Event) 'Leave' scmp 0 == if{ 0 (&gt;L:ADI_TEST,bool) }
</Click>
</Area>

</Mouse>


</Gauge>
 
Back
Top