diff --git a/fbw-common/src/systems/instruments/src/ND/shared/BtvRunwayInfo.tsx b/fbw-common/src/systems/instruments/src/ND/shared/BtvRunwayInfo.tsx index a5828cb7141..2d889e91295 100644 --- a/fbw-common/src/systems/instruments/src/ND/shared/BtvRunwayInfo.tsx +++ b/fbw-common/src/systems/instruments/src/ND/shared/BtvRunwayInfo.tsx @@ -52,15 +52,6 @@ export class BtvRunwayInfo extends DisplayComponent<{ bus: ArincEventBus }> { private readonly turnaroundIdleRev = ConsumerSubject.create(null, Arinc429Word.empty()); - private readonly turnaroundString = MappedSubject.create( - ([idle, max]) => - idle.isNormalOperation() && max.isNormalOperation() - ? `${max.value.toFixed(0).padStart(3, '\xa0')}'/${idle.value.toFixed(0).padStart(3, '\xa0')}'` - : '', - this.turnaroundIdleRev, - this.turnaroundMaxRev, - ); - onAfterRender(node: VNode) { super.onAfterRender(node); @@ -168,9 +159,10 @@ export class BtvRunwayInfo extends DisplayComponent<{ bus: ArincEventBus }> { (exit && ta ? 'visible' : 'hidden'), + ([exit, idle, max]) => (exit && idle.isNormalOperation() && max.isNormalOperation() ? 'visible' : 'hidden'), this.exitIdent, - this.turnaroundString, + this.turnaroundIdleRev, + this.turnaroundMaxRev, )} > @@ -179,7 +171,19 @@ export class BtvRunwayInfo extends DisplayComponent<{ bus: ArincEventBus }> { TURNAROUND - {this.turnaroundString} + {this.turnaroundMaxRev.map((t) => t.value.toFixed(0).padStart(3, '\xa0'))} + + + ' + + + / + + + {this.turnaroundIdleRev.map((t) => t.value.toFixed(0).padStart(3, '\xa0'))} + + + '