Modifier une gauge

Forum qui concerne Microsoft Flight Simulator X (FSX) & Lockheed Martin Prepar3D (P3D) version 1 à 3
Dubble

Modifier une gauge

Message non lu par Dubble »

Salut.
J'aimerais utiliser une gauge précise, le HSI du beech 1900D, pour un airbus, en VOR 2.

Le problème, c'est que ce HSI est par défaut VOR1.
Comment faire en sorte que ce HSI passe de VOR1 à VOR 2 ??
Merci.
Dubble

Re:Modifier une gauge

Message non lu par Dubble »

J'aimerais modifier ce truc pour que du NAV1 ils prenne la valeur du NAV2 :

Code : Tout sélectionner

<Gauge Name="Multi-Function Display" Version="1.0">
    <Image Name="nd_background.bmp" />
    <Element>
        <Position X="0" Y="16" />
        <Container />
        <Update Frequency="6" />
        <Element>
            <Size X="170" Y="170" />
            <Visible>(A:Circuit general panel on, bool) (L:PFD Switch, bool) ! &&</Visible>
            <Element>
                <Visible>(L:Nav Display Switch, bool)</Visible>
                <Element>
                    <Image Name="nd_background_overlay.bmp" Bright="Yes" />
                    <Element>
                        <Position X="89" Y="3" />
                        <Text X="30" Y="10" Bright="Yes" Length="3" Font="Arial" Color="White" Adjust="Center" VerticalAdjust="Bottom" Multiline="No" Fixed="Yes">
                            <Axis X="15" Y="0" />
                            <String>%(360 (A:Plane heading degrees gyro, degrees) dnor near d 0 == ?)%!03d!</String>
                        </Text>
                    </Element>
                    <Element>
                        <Position X="89" Y="89" />
                        <Clip />
                        <Image Name="nd_hsi_card.bmp" Bright="Yes">
                            <Axis X="66" Y="65.5" />
                        </Image>
                        <Rotate>
                            <Value>(A:Plane heading degrees gyro, radians) /-/</Value>
                        </Rotate>
                    </Element>
                    <Element>
                        <Position X="89" Y="89" />
                        <Image Name="nd_hsi_adf_needle.bmp" Bright="Yes">
                            <Axis X="8" Y="73" />
                        </Image>
                        <Rotate>
                            <Value>(A:ADF1 radial, radians)</Value>
                        </Rotate>
                    </Element>
                    <Element>
                        <Position X="89" Y="89" />
                        <Image Name="nd_hsi_vor2_needle.bmp" Bright="Yes">
                            <Axis X="10" Y="73" />
                        </Image>
                        <Rotate>
                            <Value>(A:NAV2 radial, radians) (A:Plane heading degrees gyro, radians) - pi  +</Value>
                        </Rotate>
                    </Element>
                    <Element>
                        <Position X="89" Y="89" />
                        <Image Name="nd_hsi_heading_bug.bmp" Bright="Yes">
                            <Axis X="9.5" Y="73" />
                        </Image>
                        <Rotate>
                            <Value>(A:Autopilot heading lock dir, radians) (A:Plane heading degrees gyro, radians) -</Value>
                        </Rotate>
                    </Element>
                    <Element>
                        <Position X="89" Y="89" />
                        <Image Name="nd_hsi_vor1_needle.bmp" Bright="Yes">
                            <Axis X="34" Y="61" />
                        </Image>
                        <Rotate>
                            <Value>(A:NAV1 OBS, radians) (A:Plane heading degrees gyro, radians) -</Value>
                        </Rotate>
                    </Element>
                    <Element>
                        <Position X="89" Y="89" />
                        <Select>
                            <Value>(A:HSI has localizer, bool) 0 !=</Value>
                            <Case Value="0">
                                <Image Name="nd_hsi_cdi_hollow.bmp" Bright="Yes">
                                    <Axis X="4" Y="23" />
                                </Image>
                            </Case>
                            <Case Value="1">
                                <Image Name="nd_hsi_cdi_filled.bmp" Bright="Yes">
                                    <Axis X="3" Y="22" />
                                </Image>
                            </Case>
                        </Select>
                        <Shift>
                            <Value>(A:HSI CDI needle valid,bool) if{ (A:HSI CDI needle,number)  } els{ 0 }</Value>
                            <Scale X="0.24">
                                <!--30/127 == 0.24-->
                            </Scale>
                        </Shift>
                        <Rotate>
                            <Value>(A:NAV1 OBS, radians) (A:Plane heading degrees gyro, radians) -</Value>
                        </Rotate>
                        <Clip />
                    </Element>
                    <Element>
                        <Position X="89" Y="89" />
                        <Visible>(A:HSI TF flags, enum) 0 !=</Visible>
                        <Image Name="nd_hsi_tf_indicator.bmp" Bright="Yes">
                            <Axis X="6.5" Y="23" />
                        </Image>
                        <Rotate>
                            <Value>(A:NAV1 OBS, radians) (A:Plane heading degrees gyro, radians) - (A:HSI TF flags, enum) 2 == if{ pi  + }</Value>
                        </Rotate>
                    </Element>
                    <Element>
                        <Position X="89" Y="89" />
                        <Image Name="nd_hsi_plane.bmp" Bright="Yes">
                            <Axis X="12" Y="10" />
                        </Image>
                    </Element>
                </Element>
                <Element>
                    <Position X="158" Y="90" />
                    <Visible>(A:HSI GSI needle valid, bool)</Visible>
                    <Image Name="nd_glideslope_bg.bmp" Bright="Yes">
                        <Axis X="6" Y="39" />
                    </Image>
                    <Element>
                        <Image Name="nd_glideslope_filled.bmp" Bright="Yes">
                            <Axis X="5" Y="7" />
                        </Image>
                        <Shift>
                            <Value>(A:HSI GSI needle, number)</Value>
                            <Scale Y="0.29" />
                        </Shift>
                    </Element>
                </Element>
            </Element>
            <Element>
                <Visible>(L:Nav Display Switch, bool) !</Visible>
                <Element>
                    <Element>
                        <Position X="89" Y="19" />
                        <Image Name="nd2_pointer.bmp" Bright="Yes">
                            <Axis X="14.5" Y="19" />
                        </Image>
                    </Element>
                    <Element>
                        <Position X="89" Y="3" />
                        <Text X="22" Y="10" Bright="Yes" Length="3" Font="Arial" Color="White" Adjust="Center" VerticalAdjust="Bottom" Multiline="No" Fixed="Yes">
                            <Axis X="11" Y="0" />
                            <String>%(360 (A:Plane heading degrees gyro, degrees) dnor near d 0 == ?)%!03d!</String>
                        </Text>
                    </Element>
                    <Element>
                        <Position X="89" Y="120" />
                        <Image Name="nd2_expanded_rose.bmp" Bright="Yes">
                            <Axis X="102" Y="102" />
                        </Image>
                        <Rotate>
                            <Value>(A:Plane heading degrees gyro, radians) /-/</Value>
                        </Rotate>
                        <Clip Left="16" Right="157" Top="18" Bottom="60" />
                    </Element>
                    <Element>
                        <Visible>(A:Nav2 has nav, bool) 1</Visible>
                        <Position X="89" Y="123" />
                        <Image Name="nd2_vor_arrow.bmp" Bright="Yes" PointsTo="West">
                            <Axis X="7" Y="105" />
                        </Image>
                        <Rotate>
                            <Value>(A:NAV2 radial, radians) (A:Plane heading degrees gyro, radians) - pi +</Value>
                        </Rotate>
                        <Clip Left="15" Right="157" Top="10" Bottom="121" />
                    </Element>
                    <Element>
                        <Visible>(A:ADF1 signal, number) 0 ></Visible>
                        <Position X="89" Y="123" />
                        <Image Name="nd2_adf_arrow.bmp" Bright="Yes" PointsTo="West">
                            <Axis X="7" Y="105" />
                        </Image>
                        <Rotate>
                            <Value>(A:ADF1 radial, radians)</Value>
                        </Rotate>
                        <Clip Left="15" Right="157" Top="10" Bottom="121" />
                    </Element>
                    <Element>
                        <Position X="89" Y="119" />
                        <Image Name="ND2_Staple_Track.bmp" Bright="Yes">
                            <Axis X="7.5" Y="105" />
                        </Image>
                        <Rotate>
                            <Value>(A:Autopilot heading lock dir, radians) (A:Plane heading degrees gyro, radians) -</Value>
                        </Rotate>
                        <Clip Left="15" Right="157" Top="10" Bottom="121" />
                    </Element>
                    <Element>
                        <Visible>(A:HSI CDI needle valid, bool)</Visible>
                        <Clip />
                        <Position X="89" Y="123" />
                        <Image Name="nd2_horizontal_gs.bmp" Bright="Yes">
                            <Axis X="41" Y="45" />
                        </Image>
                        <Rotate>
                            <Value>(A:NAV1 OBS, radians) (A:Plane heading degrees gyro, radians) -</Value>
                        </Rotate>
                    </Element>
                    <Element>
                        <Visible>(A:HSI CDI needle valid, bool)</Visible>
                        <Position X="89" Y="123" />
                        <Select>
                            <Value>(A:HSI has localizer, bool) 0 !=</Value>
                            <Case Value="0">
                                <Image Name="nd_hsi_cdi_hollow.bmp" Bright="Yes">
                                    <Axis X="4" Y="23" />
                                </Image>
                            </Case>
                            <Case Value="1">
                                <Image Name="nd_hsi_cdi_filled.bmp" Bright="Yes">
                                    <Axis X="3" Y="22" />
                                </Image>
                            </Case>
                        </Select>
                        <Shift>
                            <Value>(A:HSI CDI needle valid,bool) if{ (A:HSI CDI needle,number)  } els{ 0 }</Value>
                            <Scale X="0.24">
                                <!--31/127 == 0.24-->
                            </Scale>
                        </Shift>
                        <Rotate>
                            <Value>(A:NAV1 OBS, radians) (A:Plane heading degrees gyro, radians) -</Value>
                        </Rotate>
                        <Clip />
                    </Element>
                    <Element>
                        <Position X="89" Y="123" />
                        <Image Name="nd2_track.bmp" Bright="Yes">
                            <Axis X="2" Y="103" />
                        </Image>
                        <Rotate>
                            <Value>(A:Velocity world X, m/s) (A:Velocity world Z, m/s) atg2 (A:Magvar, radians) - (A:Plane heading degrees gyro, radians) - </Value>
                        </Rotate>
                        <Clip Left="15" Right="157" Top="10" Bottom="121" />
                    </Element>
                    <Element>
                        <Position X="89" Y="123" />
                        <Image Name="nd2_Ownship.bmp" Bright="Yes">
                            <Axis X="7" Y="0" />
                        </Image>
                    </Element>
                    <Element>
                        <Position X="153" Y="100" />
                        <Visible>(A:HSI GSI needle valid, bool)</Visible>
                        <Image Name="nd2_vertical_gs.bmp" Bright="Yes">
                            <Axis X="4" Y="40" />
                        </Image>
                        <Element>
                            <Image Name="nd2_ILS_pointer.bmp" Bright="Yes">
                                <Axis X="4" Y="7" />
                            </Image>
                            <Shift>
                                <Value>(A:HSI GSI needle, number)</Value>
                                <Scale Y="0.24" />
                            </Shift>
                        </Element>
                    </Element>
                    <Element>
                        <Position X="110" Y="127" />
                        <Text X="40" Y="10" Bright="Yes" Length="4" Font="Arial" Color="White" Adjust="Left" VerticalAdjust="Top" Multiline="No">
                            <String>%((A:HSI TF flags, enum) sp1)%(l1 2 ==)%{if}FROM%{end}%(l1 1 ==)%{if}TO%{end}</String>
                        </Text>
                    </Element>
                </Element>
            </Element>
            <Element>
                <Position X="159" Y="170" />
                <Element>
                    <Position X="0" Y="0" />
                    <Text X="60" Y="9" Bright="Yes" Length="8" Font="Arial" Color="#60FF60" Adjust="Right" VerticalAdjust="Bottom" Multiline="No">
                        <Axis X="60" Y="9" />
                        <String>%((A:GPS drives nav1, bool))%{if}GPS%{else}DME%{end} %((A:Nav2 dme, nmiles) s1 0 >=)%{if}%(l1 100 >=)%{if}%(l1)%!d!%{else}%(l1)%!0.1f!%{end}%{else}----%{end}</String>
                    </Text>
                </Element>
                <Element>
                    <Position X="0" Y="-10" />
                    <Text X="60" Y="9" Bright="Yes" Length="8" Font="Arial" Color="#60FF60" Adjust="Right" VerticalAdjust="Bottom" Multiline="No">
                        <Axis X="60" Y="9" />
                        <String>%((A:Nav2 active frequency, MHz))%!6.2f!</String>
                    </Text>
                </Element>
                <Element>
                    <Position X="0" Y="-20" />
                    <Text X="60" Y="9" Bright="Yes" Length="8" Font="Arial" Color="#60FF60" Adjust="Right" VerticalAdjust="Bottom" Multiline="No">
                        <Axis X="60" Y="9" />
                        <String>%((A:GPS drives nav1, bool))%{if}GPS%{else}%((A:Nav2 ident, string))%!s!%{end}</String>
                    </Text>
                </Element>
            </Element>
            <Element>
                <Position X="13" Y="170" />
                <Element>
                    <Position X="0" Y="0" />
                    <Text X="60" Y="9" Bright="Yes" Length="8" Font="Arial" Color="White" Adjust="Left" VerticalAdjust="Bottom" Multiline="No">
                        <Axis X="0" Y="9" />
                        <String>%((A:GPS drives nav1, bool))%{if}GPS%{else}DME%{end} %((A:HSI distance, nmiles) s1 0 >=)%{if}%(l1 100 >=)%{if}%(l1)%!d!%{else}%(l1)%!0.1f!%{end}%{else}----%{end}</String>
                    </Text>
                </Element>
                <Element>
                    <Position X="0" Y="-10" />
                    <Text X="60" Y="9" Bright="Yes" Length="8" Font="Arial" Color="White" Adjust="Left" VerticalAdjust="Bottom" Multiline="No">
                        <Axis X="0" Y="9" />
                        <String>%((A:Nav1 active frequency, MHz))%!6.2f!</String>
                    </Text>
                </Element>
                <Element>
                    <Position X="0" Y="-20" />
                    <Text X="60" Y="9" Bright="Yes" Length="8" Font="Arial" Color="White" Adjust="Left" VerticalAdjust="Bottom" Multiline="No">
                        <Axis X="0" Y="9" />
                        <String>%((A:GPS drives nav1, bool))%{if}GPS%{else}%((A:Nav1 ident, string))%!s!%{end}</String>
                    </Text>
                </Element>
            </Element>
            <Element>
                <Position X="13" Y="5" />
                <Element>
                    <Position X="0" Y="20" />
                    <Text X="60" Y="9" Bright="Yes" Length="8" Font="Arial" Color="#80E0FF" Adjust="Left" VerticalAdjust="Top" Multiline="No">
                        <Axis X="0" Y="0" />
                        <String>%((A:Adf1 signal, number) 1 >)%{if}%((A:Adf1 radial, degrees))%!03d!%{end}</String>
                    </Text>
                </Element>
                <Element>
                    <Position X="0" Y="10" />
                    <Text X="60" Y="9" Bright="Yes" Length="8" Font="Arial" Color="#80E0FF" Adjust="Left" VerticalAdjust="Top" Multiline="No">
                        <Axis X="0" Y="0" />
                        <String>%((A:Adf1 active frequency, KHz))%!06.1f!</String>
                    </Text>
                </Element>
                <Element>
                    <Position X="0" Y="0" />
                    <Text X="60" Y="9" Bright="Yes" Length="8" Font="Arial" Color="#80E0FF" Adjust="Left" VerticalAdjust="Top" Multiline="No">
                        <Axis X="0" Y="0" />
                        <String>%((A:GPS drives nav1, bool))%{if}GPS%{else}%((A:Adf1 ident, string))%!s!%{end}</String>
                    </Text>
                </Element>
            </Element>
            <Element>
                <Position X="158" Y="5" />
                <Element>
                    <Position X="0" Y="0" />
                    <Text X="60" Y="9" Bright="Yes" Length="8" Font="Arial" Color="White" Adjust="Right" VerticalAdjust="Top" Multiline="No">
                        <Axis X="60" Y="0" />
                        <String>%((A:GPS drives nav1, bool))%{if}DTK %{else}CRS %{end}%((A:NAV1 OBS, degrees) dnor)%!03d!</String>
                    </Text>
                </Element>
            </Element>
        </Element>
    </Element>
    <Mouse>
        <Area Left="118" Top="21" Width="40" Height="9">
            <Help ID="HELPID_AUTOPILOT_NAV_INDICATOR" />
            <Area Right="20">
                <Cursor Type="DownArrow" />
                <Click Event="VOR1_OBI_DEC" Repeat="Yes" />
            </Area>
            <Area Left="20">
                <Cursor Type="UpArrow" />
                <Click Event="VOR1_OBI_INC" Repeat="Yes" />
            </Area>
        </Area>
        <Area Left="20" Top="31" Width="98" Height="118">
            <Help ID="HELPID_GAUGE_HSI" />
        </Area>
    </Mouse>
</Gauge>
Répondre

Retourner vers « FSX, Steam Edition & Prepar3D jusqu'à v3 »