Make faup1090 emit some interesting messages when they occur.

This commit is contained in:
Oliver Jowett 2016-08-28 01:29:37 +01:00
parent 54ca2c7fb2
commit 954034855a
3 changed files with 88 additions and 0 deletions

View file

@ -70,6 +70,9 @@ 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)
a->fatsv_emitted_bds_30[0] = 0x30;
// 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
// time this ModeA/C is received again in the future