Version: 1.5.27.0
Frequency: Consistently
Severity: Blocker
Marketplace package name: sws-aircraft-airvan
Context: Community & developer mode
Bug description: When engaging HDG HOLD, the autopilot remains in attitude hold and will not follow the selected heading. NAV mode works OK.
If I start a flight with the default C172SP (analogue), the 172 follows heading just fine. I then switch to the GA-8 using the Aircraft Selector and the plane is able to follow the heading normally.
KAP140_State is 2 and AP_KAP140_INSTALLED is 1, which are in line with the C172, so the KAP140 initialises the Lvars correctly.
Panel.cfg entries
[VCockpit01]
size_mm = 320,234
pixel_size = 320,234
texture = $AS530
htmlgauge00 = NavSystems/WTGNSv2/WT530/WT530.html,0,0,320,234
[VCockpit02]
size_mm = 350,190
pixel_size = 350,190
texture = $AS430
htmlgauge00 = NavSystems/WTGNSv2/WT430/WT430.html, 0, 0, 350, 190
[VCockpit05]
size_mm = 512,105
pixel_size = 512,105
texture = $SWS_KFC225_Screen
htmlgauge00 = Generic/Autopilots/KAP140/KAP140.html, 0,0,512,105
Panel.xml
<Instrument>
<Name>AS530</Name>
<NavIndex>1</NavIndex>
<ComIndex>1</ComIndex>
<SupportAPFlightDirector>False</SupportAPFlightDirector>
<MaxAPBankAngle>30</MaxAPBankAngle>
<Electric>
<Simvar name="CIRCUIT ON:13" unit="Boolean"/>
</Electric>
</Instrument>
<Instrument>
<Name>AS430</Name>
<NavIndex>2</NavIndex>
<ComIndex>2</ComIndex>
<SupportAPFlightDirector>False</SupportAPFlightDirector>
<MaxAPBankAngle>30</MaxAPBankAngle>
<Electric>
<Simvar name="CIRCUIT ON:40" unit="Boolean"/>
</Electric>
</Instrument>
Interior.xml
<UseTemplate Name="ASOBO_AS530_Template">
<!--<EXTERNAL_AUTOPILOT_BEHAVIOR_CONTROL/>-->
<POTENTIOMETER/>
<NAV_INDEX>1</NAV_INDEX>
<COM_INDEX>1</COM_INDEX>
<CIRCUIT_ID>#CIRCUIT_ID_GPS1#</CIRCUIT_ID>
<FAILURE>(A:CIRCUIT ON:#CIRCUIT_ID_GPS1#, Bool)</FAILURE>
<EMISSIVE_DEFAULT_VALUE>(A:LIGHT PANEL POWER SETTING:2, Percent over 100) 1 #MIN_BRIGHTNESS# - * #MIN_BRIGHTNESS# (A:CIRCUIT ON:#CIRCUIT_ID_GPS1#, Bool) * +</EMISSIVE_DEFAULT_VALUE>
<DIMMING_FACTOR>(A:CIRCUIT POWER SETTING:#CIRCUIT_ID_GPS1#, Percent over 100)</DIMMING_FACTOR>
<ANIM_NEVER_FAILS/>
</UseTemplate>
<UseTemplate Name="ASOBO_AS430_Template">
<!--<EXTERNAL_AUTOPILOT_BEHAVIOR_CONTROL/>-->
<NAV_INDEX>2</NAV_INDEX>
<COM_INDEX>2</COM_INDEX>
<POTENTIOMETER/>
<CIRCUIT_ID>#CIRCUIT_ID_GPS2#</CIRCUIT_ID>
<FAILURE>(A:CIRCUIT ON:#CIRCUIT_ID_GPS2#, Bool)</FAILURE>
<ANIM_NEVER_FAILS/>
<EMISSIVE_DEFAULT_VALUE>(A:LIGHT PANEL POWER SETTING:2, Percent over 100) 1 #MIN_BRIGHTNESS# - * #MIN_BRIGHTNESS# (A:CIRCUIT ON:#CIRCUIT_ID_GPS2#, Bool) * +</EMISSIVE_DEFAULT_VALUE>
<DIMMING_FACTOR>(A:CIRCUIT POWER SETTING:#CIRCUIT_ID_GPS2#, Percent over 100)</DIMMING_FACTOR>
</UseTemplate>
The Autopilot uses the ASOBO_KAP140_Template and adds a couple of buttons that are needed (YawDamper, FlightDirector, AltitudeArm)
