faup1090: Track Comm-B ACAS RA separately to ES ACAS RA as it's useful to see both reported.

Fix repeated reporting of ES ACAS RA reports.
This commit is contained in:
Oliver Jowett 2016-09-24 16:09:38 +01:00
parent 2bcd0741c9
commit 14a003710e
3 changed files with 6 additions and 3 deletions

View file

@ -71,8 +71,10 @@ struct aircraft *trackCreateAircraft(struct modesMessage *mm) {
a->signalLevel[i] = 1e-5;
a->signalNext = 0;
// start off with the "last emitted" ACAS RA being blank (just the BDS 3,0 code)
// start off with the "last emitted" ACAS RA being blank (just the BDS 3,0
// or ES type code)
a->fatsv_emitted_bds_30[0] = 0x30;
a->fatsv_emitted_es_acas_ra[0] = 0xE2;
// mm->msgtype 32 is used to represent Mode A/C. These values can never change, so
// set them once here during initialisation, and don't bother to set them every