Skip to content

Commit

Permalink
feat(a380x): true/mag button (#8693)
Browse files Browse the repository at this point in the history
  • Loading branch information
tracernz authored Jun 26, 2024
1 parent 8bfdc51 commit d53bea9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,16 @@
<TOOLTIPID>%((A:AUTOPILOT MANAGED SPEED IN MACH, Bool))%{if}TT:COCKPIT.TOOLTIPS.AUTOPILOT_PANEL_SPD_MACH%{else}TT:COCKPIT.TOOLTIPS.AUTOPILOT_PANEL_SPD_KNOT%{end}</TOOLTIPID>
</UseTemplate>

<UseTemplate Name="FBW_AUTOPILOT_Push_Template">
<NODE_ID>PUSH_FCU_TRUEMAG</NODE_ID>
<TOOLTIPID>%((L:A32NX_PUSH_TRUE_REF, bool))%{if}TT:COCKPIT.TOOLTIPS.AUTOPILOT_PANEL_AP_ON%{else}TT:COCKPIT.TOOLTIPS.AUTOPILOT_PANEL_AP_OFF%{end}</TOOLTIPID>

<NO_INDICATOR>True</NO_INDICATOR>
<NO_TEXT_EMISSIVE>True</NO_TEXT_EMISSIVE>

<LEFT_SINGLE_CODE>(&gt;H:A320_Neo_FCU_TRUEMAG_PUSH)</LEFT_SINGLE_CODE>
</UseTemplate>

<!-- LOC pb -->
<UseTemplate Name="FBW_A380X_BacklightIndicator_Button_Template">
<NODE_ID>PUSH_FCU_LOC</NODE_ID>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -532,6 +532,8 @@ class A320_Neo_FCU_Autopilot extends A320_Neo_FCU_Component {
SimVar.SetSimVarValue('K:A32NX.FCU_APPR_PUSH', 'number', 0);
} else if (_event === 'EXPED_PUSH') {
SimVar.SetSimVarValue('K:A32NX.FCU_EXPED_PUSH', 'number', 0);
} else if (_event === 'TRUEMAG_PUSH') {
SimVar.SetSimVarValue('L:A32NX_PUSH_TRUE_REF', 'bool', !SimVar.GetSimVarValue('L:A32NX_PUSH_TRUE_REF', 'bool'));
}
}

Expand Down

0 comments on commit d53bea9

Please sign in to comment.