I am trying to implement a custom coded ADF solution for our Dash 7, this to be more specific:
While the frequency selection part appears to work correctly, the Behaviours debug is showing a constant 0 for ADF SIGNAL:1, I have no idea why.
The ADF ANT switch that you can see on the above screenshot uses the following code:
<Component ID="DHC7_ADF_Switch_ADF_ANT_1" Node="ADF_Switch_ADF_ANT_1_Pilot">
<UseTemplate Name="ASOBO_GT_Switch_Code">
<ANIM_NAME>ADF_Switch_ADF_ANT_1_Pilot</ANIM_NAME>
<ANIM_CODE>(L:ADF_Switch_ADF_ANT_1_Pilot, Bool) 100 *</ANIM_CODE>
<LEFT_SINGLE_CODE>(L:ADF_Switch_ADF_ANT_1_Pilot, Bool) ! (>L:ADF_Switch_ADF_ANT_1_Pilot, Bool)</LEFT_SINGLE_CODE>
</UseTemplate>
<UseTemplate Name="ASOBO_GT_Update">
<FREQUENCY>4</FREQUENCY>
<UPDATE_CODE>
(L:ADF_Switch_ADF_ANT_1_Pilot, Bool) (>B:NAVCOM_ADF_Mode_ADF)
</UPDATE_CODE>
</UseTemplate>
</Component>
The switch moves and my assumption is that the value of L:ADF_Switch_ADF_ANT_1_Pilot is getting passed on to B:NAVCOM_ADF_Mode_ADF.
I could not find anything in the SDK for setting ADF and BFO, I assume that using B:NAVCOM_ADF_Mode_ADF and B:NAVCOM_ADF_Mode_BFO is the correct way of setting these. I’ve seen that the default ASOBO ADF templates mostly use B:NAVCOM_ADF_ADF_ANT_MODE_TOGGLE_Push and I assume this is due to the fact that they are geared towards a push button rather than a switch.
I’ve also noticed that some of the default aircraft, such as the Cessna 152 and Cessna 172 Classic are using B:NAVCOM_ADF_Mode_ADF and B:NAVCOM_ADF_ADF_ANT_MODE_TOGGLE_Push, yet this seems to make absolutely no difference, the ADF signal seems to always be captured, regardless of ANT or ADF mode being active. So either these switches are purely cosmetic, or there is a bug in the ADF implementation.
Could you please confirm the correct methodology we should be using for this type of ADF switch?
Jerome