- Messages
- 129
- Country

Hello. I am trying to modify the FS9's default autopilot. The behavior works great but not the graphics. I have the following in one XML:
Gauge 1:
<Element><Select><Value>
(A:Autopilot Master,bool) (A:AUTOPILOT HEADING LOCK, bool) ! and (A:AUTOPILOT NAV1
LOCK, bool) ! and if{ 1 (>L:TurnBK_AP_HDG_LT_ON, bool) els{ 0 (>L:TurnBK_AP_HDG_LT_ON, bool) }
</Value></Select>
</Element>
<Element>
<Visible>(P:Absolute time,seconds) 1 % 0.5 1 * > (A:Autopilot Master,bool) 1 == and
(A:AUTOPILOT HEADING LOCK, bool) ! and (A:AUTOPILOT NAV1 LOCK, bool) ! and </Visible>
<Position X="86" Y="43"/>
<Image Name="Hdg_Alert.bmp" Bright="Yes"/>
</Element>
The (A:AUTOPILOT HEADING LOCK, bool) is turned off on purpose so I have can control:
(L:AileronControl, Degrees) (>K:AXIS_AILERONS_SET)
In a different gauge, the one that not completely working, I have:
Gauge 2:
<Element>
<Visible> (L:TurnBK_AP_HDG_LT_ON, bool) </Visible>
<Position X="0" Y="0"/>
<Image Name="AP_HDG_ON.bmp" Luminous="Yes" Bright="Yes"/>
</Element>
The panel.cfg:
[Window01]
Background_color=2,2,2
size_mm=156,308
position=8
visible=0
ident=RADIO_STACK_PANEL
gauge00=Bendix_King_Radio!Bendix-King Radio Audio, 0,0
gauge01=Bendix_King_Radio!Bendix-King Radio Nav-Comm 1, 0,29
gauge02=Bendix_King_Radio!Bendix-King Radio Nav-Comm 2, 0,86
gauge03=Bendix_King_Radio!Bendix-King Radio ADF, 0,142
gauge04=Bendix_King_Radio!Bendix-King Radio DME, 0,180
gauge05=Bendix_King_Radio!Bendix-King Radio Xpndr, 0,217
gauge06=Bendix_King_Radio!Bendix-King Radio AP, 0,262
gauge07=SS!BK_AP_HDG_LIGHT, 26,295,17,13
In Gauge 1, I have a heading alert .bmp flashing as indicator that the autopilot's heading is turned off. I attempted to apply
this same logic in Gauge 2 but to no avail.
In Gauge 2, the gauge displayed correctly if:
<Visible>1</Visible> but not when I added any kind of logic. I originally used FS's variables directly but
that didn't work either.
In the panel.cfg, I played around with draw_order_00 but that also made no difference. Since I'm turning off the
Autopilot's heading using: (>K:AP_HDG_HOLD_OFF) and (>K:AP_PANEL_HEADING_OFF), so I can control the ailerons, I still want
to show the autopilot's heading is ON in the Bendix King radio stack. Thank you for any help.
Gauge 1:
<Element><Select><Value>
(A:Autopilot Master,bool) (A:AUTOPILOT HEADING LOCK, bool) ! and (A:AUTOPILOT NAV1
LOCK, bool) ! and if{ 1 (>L:TurnBK_AP_HDG_LT_ON, bool) els{ 0 (>L:TurnBK_AP_HDG_LT_ON, bool) }
</Value></Select>
</Element>
<Element>
<Visible>(P:Absolute time,seconds) 1 % 0.5 1 * > (A:Autopilot Master,bool) 1 == and
(A:AUTOPILOT HEADING LOCK, bool) ! and (A:AUTOPILOT NAV1 LOCK, bool) ! and </Visible>
<Position X="86" Y="43"/>
<Image Name="Hdg_Alert.bmp" Bright="Yes"/>
</Element>
The (A:AUTOPILOT HEADING LOCK, bool) is turned off on purpose so I have can control:
(L:AileronControl, Degrees) (>K:AXIS_AILERONS_SET)
In a different gauge, the one that not completely working, I have:
Gauge 2:
<Element>
<Visible> (L:TurnBK_AP_HDG_LT_ON, bool) </Visible>
<Position X="0" Y="0"/>
<Image Name="AP_HDG_ON.bmp" Luminous="Yes" Bright="Yes"/>
</Element>
The panel.cfg:
[Window01]
Background_color=2,2,2
size_mm=156,308
position=8
visible=0
ident=RADIO_STACK_PANEL
gauge00=Bendix_King_Radio!Bendix-King Radio Audio, 0,0
gauge01=Bendix_King_Radio!Bendix-King Radio Nav-Comm 1, 0,29
gauge02=Bendix_King_Radio!Bendix-King Radio Nav-Comm 2, 0,86
gauge03=Bendix_King_Radio!Bendix-King Radio ADF, 0,142
gauge04=Bendix_King_Radio!Bendix-King Radio DME, 0,180
gauge05=Bendix_King_Radio!Bendix-King Radio Xpndr, 0,217
gauge06=Bendix_King_Radio!Bendix-King Radio AP, 0,262
gauge07=SS!BK_AP_HDG_LIGHT, 26,295,17,13
In Gauge 1, I have a heading alert .bmp flashing as indicator that the autopilot's heading is turned off. I attempted to apply
this same logic in Gauge 2 but to no avail.
In Gauge 2, the gauge displayed correctly if:
<Visible>1</Visible> but not when I added any kind of logic. I originally used FS's variables directly but
that didn't work either.
In the panel.cfg, I played around with draw_order_00 but that also made no difference. Since I'm turning off the
Autopilot's heading using: (>K:AP_HDG_HOLD_OFF) and (>K:AP_PANEL_HEADING_OFF), so I can control the ailerons, I still want
to show the autopilot's heading is ON in the Bendix King radio stack. Thank you for any help.



