Skip to content

Commit

Permalink
fix(tcas): fix for some phantom RAs
Browse files Browse the repository at this point in the history
  • Loading branch information
2hwk committed Oct 7, 2021
1 parent a13ac4e commit 3aa5b1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tcas/src/components/TcasComputer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,7 @@ export class TcasComputer implements TcasComponent {
}

this.raTraffic = this.airTraffic
.filter((traffic) => traffic.intrusionLevel === TaRaIntrusion.RA)
.filter((traffic) => traffic.intrusionLevel === TaRaIntrusion.RA && traffic.alive)
.sort((a, b) => a.raTau - b.raTau);
this._newRa.info = null;
this._newRa.isReversal = false;
Expand Down

0 comments on commit 3aa5b1b

Please sign in to comment.