- Messages
- 57
- Country

Dear Experts,
I try to replicate the ARC (Cessna) IN-385 VOR/LOC as closely as possible, but I can't make a back course flag work (a highlighted portion of the code below).
Either I do something wrong in the code or I don't understand how it is supposed to function, but when I place an aircraft on the back course of the localizer, the light doesn't illuminate.
I will highly appreciate if somebody takes a look at the code and says what's wrong with it (or with me
) in that portion.
Thank you.
I try to replicate the ARC (Cessna) IN-385 VOR/LOC as closely as possible, but I can't make a back course flag work (a highlighted portion of the code below).
Either I do something wrong in the code or I don't understand how it is supposed to function, but when I place an aircraft on the back course of the localizer, the light doesn't illuminate.
I will highly appreciate if somebody takes a look at the code and says what's wrong with it (or with me
Thank you.
Code:
<Gauge Name="vor1" Version="1.0">
<Image Name="vor_background2.bmp"/>
<Element>
<Position X="187" Y="267"/>
<Visible>(A:NAV TOFROM:1,enum) 2 ==</Visible>
<Image Name="vor_from_arrow2.bmp"/>
</Element>
<Element>
<Position X="187" Y="267"/>
<Visible>(A:NAV TOFROM:1,enum) 1 ==</Visible>
<Image Name="vor_to_arrow2.bmp"/>
</Element>
<Element>
<Position X="187" Y="267"/>
<Visible>(A:NAV1 HAS NAV,bool) (A:CIRCUIT AVIONICS ON,bool) && !</Visible>
<Image Name="vor_bug2.bmp">
<Transparent>True</Transparent>
</Image>
</Element>
<Element>
<Position X="216" Y="221"/>
<Image Name="vor_needle2.bmp" ImageSizes="5,221,0,0">
<Axis X="2" Y="90"/>
</Image>
<Shift>
<Value Minimum="-120" Maximum="120">(A:NAV1 CDI, number)</Value>
<Failures>
<SYSTEM_ELECTRICAL_PANELS Action="0"/>
<SYSTEM_ELECTRICAL_AVIONICS Action="0"/>
<GAUGE_NAVIGATION_VOR1 Action="0"/>
</Failures>
<Nonlinearity>
<Item Value="-120" X="122" Y="214"/>
<Item Value="0" X="216" Y="214"/>
<Item Value="120" X="309" Y="214"/>
</Nonlinearity>
<Delay PixelsPerSecond="33"/>
</Shift>
</Element>
<Element>
<Position X="0" Y="0"/>
<MaskImage Name="vor_maskimage.bmp">
<Axis X="216" Y="210"/>
</MaskImage>
<Image Name="vor_compass_ring2.bmp">
<Axis X="213" Y="213"/>
</Image>
<Rotate>
<Value>(A:NAV1 OBS,radians) /-/</Value>
</Rotate>
</Element>
<Element>
<Position X="50" Y="402"/>
<Image Name="VOR1_Knob.bmp" ImageSizes="74,74,0,0">
<Axis X="37" Y="37"/>
</Image>
<Rotate>
<Value>(A:NAV1 OBS,radians) 3 *</Value>
</Rotate>
</Element>
[COLOR="Red"] <Element>
<Position X="170" Y="157"/>
<Select>
<Value>(A:NAV1 BACK COURSE FLAGS, bool)</Value>
<Case Value="0">
<Image Name="vor_bc_flag_off.bmp" ImageSizes="24,24"/>
</Case>
<Case Value="1">
<Image Name="vor_bc_flag.bmp" ImageSizes="24,24"/>
</Case>
</Select>
</Element>[/COLOR]
<Mouse>
<Tooltip ID="TOOLTIPTEXT_VHF_NAV1_COURSE"/>
<Area Left="0" Top="0" Width="433" Height="315">
<Cursor Type="Hand"/>
<Click>1850 (> K:PANEL_ID_TOGGLE)</Click>
</Area>
<Area Left="8" Right="90" Top="365" Bottom="440">
<Area Left="40">
<Cursor Type="DownArrow"/>
<Click Event="VOR1_OBI_DEC" Repeat="Yes"/>
</Area>
<Area Right="40">
<Cursor Type="UpArrow"/>
<Click Event="VOR1_OBI_INC" Repeat="Yes"/>
</Area>
</Area>
</Mouse>
</Gauge>

