Show synthetic MLAT messages as such.

This commit is contained in:
Oliver Jowett 2015-06-29 12:42:50 +01:00
parent 1a3f65eaab
commit f6ff1c853b

View file

@ -1107,8 +1107,12 @@ void displayModesMessage(struct modesMessage *mm) {
if (mm->score)
printf("Score: %d\n", mm->score);
if (mm->timestampMsg)
printf("Time: %.2fus (phase: %d)\n", mm->timestampMsg / 12.0, (unsigned int) (360 * (mm->timestampMsg % 6) / 6));
if (mm->timestampMsg) {
if (mm->timestampMsg == MAGIC_MLAT_TIMESTAMP)
printf("This is a synthetic MLAT message.\n");
else
printf("Time: %.2fus (phase: %d)\n", mm->timestampMsg / 12.0, (unsigned int) (360 * (mm->timestampMsg % 6) / 6));
}
if (mm->msgtype == 0) { // DF 0
printf("DF 0: Short Air-Air Surveillance.\n");