Show synthetic MLAT messages as such.
This commit is contained in:
parent
1a3f65eaab
commit
f6ff1c853b
8
mode_s.c
8
mode_s.c
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue