Skip to content

Commit

Permalink
fix(pfd): sizing of pitch trim messages (flybywiresim#8192)
Browse files Browse the repository at this point in the history
  • Loading branch information
tracernz authored Sep 7, 2023
1 parent b32db7f commit 1d42887
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 18 deletions.
1 change: 1 addition & 0 deletions .github/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
1. [FWC] Added "twenty five hundred" and "two thousand" callouts - @tracernz (Mike)
1. [FMS] Load procedures that reference a runway correctly - @tracernz (Mike)
1. [MCDU/ND] Corrected altitude formatting with respect to transition altitude and transition level - @tracernz (Mike)
1. [PFD] Adjusted size of pitch trim messages - @tracernz (Mike)

## 0.10.0

Expand Down
37 changes: 19 additions & 18 deletions fbw-a32nx/src/systems/instruments/src/PFD/FMA.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1206,54 +1206,55 @@ const getBC3Message = (
&& !fcdcWord1.getBitValue(13)
&& !fcdcWord1.getBitValue(15)
&& !fcdcWord1.isFailureWarning()
&& flightPhaseForWarning) {
&& flightPhaseForWarning
) {
text = 'MAN PITCH TRIM ONLY';
className = 'Red Blink9Seconds';
className = 'FontSmall Red Blink9Seconds';
} else if (fcdcWord1.getBitValue(15) && !fcdcWord1.isFailureWarning() && flightPhaseForWarning) {
text = 'USE MAN PITCH TRIM';
className = 'PulseAmber9Seconds Amber';
className = 'FontSmall PulseAmber9Seconds Amber';
} else if (false) {
text = 'FOR GA: SET TOGA';
className = 'PulseAmber9Seconds Amber';
className = 'FontMedium PulseAmber9Seconds Amber';
} else if (TCASArmed && !isAttExcessive) {
text = ' TCAS ';
className = 'Cyan';
className = 'FontMedium Cyan';
} else if (false) {
text = 'DISCONNECT AP FOR LDG';
className = 'PulseAmber9Seconds Amber';
className = 'FontMedium PulseAmber9Seconds Amber';
} else if (tcasRaInhibited && !isAttExcessive) {
text = 'TCAS RA INHIBITED';
className = 'White';
className = 'FontMedium White';
} else if (trkFpaDeselectedTCAS && !isAttExcessive) {
text = 'TRK FPA DESELECTED';
className = 'White';
className = 'FontMedium White';
} else if (false) {
text = 'SET GREEN DOT SPEED';
className = 'White';
className = 'FontMedium White';
} else if (tdReached) {
text = 'T/D REACHED';
className = 'White';
className = 'FontMedium White';
} else if (false) {
text = 'MORE DRAG';
className = 'White';
className = 'FontMedium White';
} else if (false) {
text = 'CHECK SPEED MODE';
className = 'White';
className = 'FontMedium White';
} else if (false) {
text = 'CHECK APPR SELECTION';
className = 'White';
className = 'FontMedium White';
} else if (false) {
text = 'TURN AREA EXCEEDANCE';
className = 'White';
className = 'FontMedium White';
} else if (setHoldSpeed) {
text = 'SET HOLD SPEED';
className = 'White';
className = 'FontMedium White';
} else if (false) {
text = 'VERT DISCONT AHEAD';
className = 'Amber';
className = 'FontMedium Amber';
} else if (false) {
text = 'FINAL APP SELECTED';
className = 'White';
className = 'FontSmall White';
} else {
return [null, null];
}
Expand Down Expand Up @@ -1286,7 +1287,7 @@ class BC3Cell extends DisplayComponent<{ isAttExcessive: Subscribable<boolean>,
const [text, className] = getBC3Message(
this.isAttExcessive, this.armedVerticalMode, this.setHoldSpeed, this.trkFpaDeselected, this.tcasRaInhibited, this.fcdcDiscreteWord1, this.fwcFlightPhase, this.tdReached,
);
this.classNameSub.set(`FontMedium MiddleAlign ${className}`);
this.classNameSub.set(`MiddleAlign ${className}`);
if (text !== null) {
this.bc3Cell.instance.innerHTML = text;
} else {
Expand Down

0 comments on commit 1d42887

Please sign in to comment.